#13 — empty previously saved values

by Peter Mathis last modified Nov 26, 2010 05:41 PM
State Resolved
Version: addremovewidget-1.4.4
Area Functionality
Issue type Bug
Severity Medium
Submitted by Peter Mathis
Submitted on Nov 02, 2010
Responsible Maurits van Rees
Target release:
if you have previously saved values in <fieldName>_selected, remove them all and save the object, the values are still present, because the javascript function "_addremove_updateSubmitField" removes all <input name="<fieldName>" /> nodes and doesn't place an empty one, so that the request doesn't recognize to empty this field.

i've committed a fix in trunk for that, see docs/HISTORY.txt
Steps to reproduce:
 - select values and save object
 - edit object, move all "_selected" values to "_unselected" and save object
 - values are still in object
Added by Roel Bruggink on Nov 25, 2010 04:14 PM
What code was that?

Anyway, a fix is in trunk, r13297.
Added by Maurits van Rees on Nov 26, 2010 05:41 PM
Issue state: UnconfirmedResolved
Responsible manager: (UNASSIGNED)maurits
Bug confirmed and fix confirmed. Thanks!

No responses can be added.