FIX Unset internal metadata on TreeDropdownField setValue()

Otherwise the hidden field value and metadata will get out of sync.
Most commonly used together with setTitle('') as well.
This commit is contained in:
Ingo Schommer 2013-03-25 23:39:37 +01:00
parent 42a422775e
commit 0a283eacb8

View File

@ -124,6 +124,7 @@
else this.loadTree(null, updateFn);
},
setValue: function(val) {
this.data('metadata', $.extend(this.data('metadata'), {id: val}));
this.find(':input:hidden').val(val).trigger('change');
},
getValue: function() {