mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Fix broken check in current selection causing missing labels
This commit is contained in:
parent
09e3000cb6
commit
9b70d4bb50
@ -701,11 +701,7 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR
|
||||
// Check options
|
||||
(result = $j.grep(this.options.select_options, function(e) {
|
||||
return e.id == v;
|
||||
})) ||
|
||||
// Check current selection to avoid going back to server
|
||||
(result = $j.grep(this.taglist.getSelection(), function(e) {
|
||||
return e.id == v;
|
||||
}))
|
||||
})) && result.length
|
||||
)
|
||||
{
|
||||
// Options should have been provided, but they weren't
|
||||
@ -719,6 +715,17 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR
|
||||
label: v
|
||||
};
|
||||
}
|
||||
else if (
|
||||
// Check current selection to avoid going back to server
|
||||
(result = $j.grep(this.taglist.getSelection(), function(e) {
|
||||
return e.id == v;
|
||||
})) && result.length)
|
||||
{
|
||||
values[i] = result[0] ? result[0] : {
|
||||
id: v,
|
||||
label: v
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
if (typeof values[i].id == 'undefined')
|
||||
|
Loading…
Reference in New Issue
Block a user