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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | entityqueue-clear-validation-2937845-2.patch | 639 bytes | vordude |
Comments
Comment #2
vordude commentedPatch should work. No reason to unset the build_info from my perspective.
Comment #4
quicksketchThanks @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.