Bug #23460 Bug Fixed

Channel Form - allow comments default not adhered to

Version: 4.0.8 Reporter: Simon Job

The “Allow comments default?” setting is not adhered to when an entry is submitted via a channel form.

With Allow comments default? set to yes in the Channel settings, when a new entry is submitted via a Channel Form, the Allow comments? field is set to no.

  • I can replicate, we’ll get on a fix. Thanks for the bug report!

    Robin Sowell
    09th February, 2018 at 6:10pm
  • Just clarifying, has this actually been fixed in a release? I cannot find a reference to 23460 in the Change Log and the problem still exists in 4.2.1.

    Simon Job
    02nd May, 2018 at 1:54am
  • I just tested and you’re right, it’s still not behaving correctly with regard to the default. I’ve definitely got a patch committed and it’s included in the solution tab now.

    Sorry for any confusion, Simon. If you run into any problems with the patch, just let me know.

    Robin Sowell
    03rd May, 2018 at 1:51pm
  • And… there’s still a bug in the fix. We’re working on it- I’ll update here as soon as it’s final.

    Robin Sowell
    04th May, 2018 at 10:53am
  • This was fixed in 4.3.1. Thanks for your patience!

    Robin Sowell
    03rd July, 2018 at 1:45pm

You must be signed in to comment on a bug report.

  • In 4.2.1 in system/ee/EllisLab/Addons/channel/libraries/channel_form/Channel_form_lib.php add this on line 1518

    // If allow_comments is NOT included in the form and it's not set by parameter, use the default
         if ( ! isset($_POST['allow_comments']) && $this->_meta['allow_comments'] == FALSE)
         {
          $_POST['allow_comments'] = ($this->channel('deft_comments') == TRUE && $this->channel('comment_system_enabled') == TRUE) ? 'y' : 'n';
         }
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases