Bug #21829 Bug Fixed

Relationships in Channel Form won’t allow deleting all selected entries

Version: 2.11.1 Reporter: peredur

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

When using a Relationships field in Channel Form, it appears not to be possible to delete all selected entries. I can delete all EXCEPT the last one. But that last one will not go away.

Same on all browsers I’ve tried. Works fine in the CP, but not in a SAEF. I’ve replicated on multiple fields, and on a clean install — same result. After clicking the red X and submitting, that last entry is still in the “selected” column.

Can’t find any other mention of this, but…?

(And I can’t — yet — upgrade to 3.x because I’m waiting on a few critical add-ons.)

  • In modules/channel/libraries/channel_form/Channel_form_lib.php on line 526

    if ($this->get_field_type($match[1]) =='checkboxes')

    Change to

    if ($this->get_field_type($match[1]) == 'checkboxes' 
         OR $this->get_field_type($match[1]) == 'grid' 
         OR $this->get_field_type($match[1]) == 'relationship')


    Does that get it working?

    The better option is to upgrade to v3, but if that’s not an option, give this a test.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases