This topic is locked

Deselect issue with the last value of a dropdown box when editing

10/26/2011 12:37:13 PM
PHPRunner General questions
L
lucmer author

Hello,
When I edit a record with a multiline dropdown box (with lookup table) and try to deselect all the values (by using ctlr key), the previously deselected line are still selected after validation.
When I activate the debug mode, I can notice that even when deselected, the values are still passed to the query:
update clients set document_country_id='30';
If I replace the dropdown box by a checkbox list, it works correctly:
update clients set document_country_id='';
Is there any workarounds for this issue (I can't use a blank value as the dropdown box will be later integrated in a jquery multiselect menu).
Thank you for your help!
Lucien, Lucmer