mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 18:08:21 +01:00
fix infolog wont save, if cc was an empty string, seems taglist needs empty now as empty array, not null or ""
This commit is contained in:
parent
1b0c8eaad7
commit
ab23ecb7f5
@ -381,7 +381,7 @@ var et2_taglist = et2_selectbox.extend(
|
|||||||
set_select_options: function(_options)
|
set_select_options: function(_options)
|
||||||
{
|
{
|
||||||
this.options.select_options = this._options2data(_options);
|
this.options.select_options = this._options2data(_options);
|
||||||
|
|
||||||
if(this.taglist == null) return;
|
if(this.taglist == null) return;
|
||||||
var widget = this;
|
var widget = this;
|
||||||
this.taglist.setData(function(query) {
|
this.taglist.setData(function(query) {
|
||||||
@ -404,9 +404,10 @@ var et2_taglist = et2_selectbox.extend(
|
|||||||
*/
|
*/
|
||||||
set_value: function(value)
|
set_value: function(value)
|
||||||
{
|
{
|
||||||
|
if (value === '' || value === null) value = [];
|
||||||
var values = jQuery.isArray(value) ? jQuery.extend([],value) : [value];
|
var values = jQuery.isArray(value) ? jQuery.extend([],value) : [value];
|
||||||
this.options.value = values;
|
this.options.value = values;
|
||||||
|
|
||||||
if(this.taglist == null) return;
|
if(this.taglist == null) return;
|
||||||
|
|
||||||
if(!value)
|
if(!value)
|
||||||
|
Loading…
Reference in New Issue
Block a user