If I use the clear button and then attempt to save the queue, I'm presented with this form validation message:

This queue has been modified in another window or by another user and cannot be saved. Load this page again and remake your changes.

I've tracked this down to entityqueue_subqueue_clear_validate(), specifically

$form_state['build_info']['args'][1]->{$field_name}[$lang] = array();

Which removes the entityqueue from the $form_state thus triggering the error in entityqueue_subqueue_edit_form_validate() because the loaded version of the entity queue doesn't match the version of the entityqueue in $form_state (since it was removed).

Patch coming.

Comments

vordude created an issue. See original summary.

vordude’s picture

StatusFileSize
new639 bytes

Patch should work. No reason to unset the build_info from my perspective.

  • quicksketch committed 90f0a86 on 7.x-1.x
    Issue #2937845 by vordude: Clear Button Causes Validation issues.
    
quicksketch’s picture

Status: Active » Fixed

Thanks @vordude! Works and doesn't seem to introduce any new problems. Those lines were absurd anyway: modifying $form_state['args']?? How strange. This reduces clunky code and fixes a problem at the same time. Committed to 7.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.