mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Portal : Fixed a bug in linkedset when removing last object
SVN:trunk[4004]
This commit is contained in:
@@ -168,7 +168,13 @@ EOF
|
||||
'get_current_value_callback': function(me, oEvent, oData){
|
||||
var value = null;
|
||||
|
||||
value = JSON.parse(me.element.find('#{$this->oField->GetGlobalId()}').val());
|
||||
// Retrieving JSON value as a string and not an object
|
||||
//
|
||||
// Note : The value is passed as a string instead of an array because the attribute would not be included in the posted data when empty.
|
||||
// Which was an issue when deleting all objects from linkedset
|
||||
//
|
||||
// Old code : value = JSON.parse(me.element.find('#{$this->oField->GetGlobalId()}').val());
|
||||
value = me.element.find('#{$this->oField->GetGlobalId()}').val();
|
||||
|
||||
return value;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user