Bug #21829 Fix is in Upcoming Release

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

Version: EE 2.11.1 Reporter: peredur

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.)

  • This is happening to me as well. If 5 are selected, and I remove all 5, all 5 return after saving. If I remove 4, the one remaining entry correctly returns after saving, and then you can’t remove that last one.

    Tim Murtaugh
    29th June, 2016 at 4:45pm
  • Hi! We’re having the same issue on EE 2.11.2.

    bsrweb
    16th September, 2016 at 6:19pm
  • Upgrading to v3 is definitely the preferred fix, but for the short term, you can try the patch in the solution tab.

    Robin Sowell
    20th June, 2017 at 10:14am

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

  • 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.

ExpressionEngine News

#eecms, #events, #releases