mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +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
|
// Check options
|
||||||
(result = $j.grep(this.options.select_options, function(e) {
|
(result = $j.grep(this.options.select_options, function(e) {
|
||||||
return e.id == v;
|
return e.id == v;
|
||||||
})) ||
|
})) && result.length
|
||||||
// Check current selection to avoid going back to server
|
|
||||||
(result = $j.grep(this.taglist.getSelection(), function(e) {
|
|
||||||
return e.id == v;
|
|
||||||
}))
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Options should have been provided, but they weren't
|
// 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
|
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
|
else
|
||||||
{
|
{
|
||||||
if (typeof values[i].id == 'undefined')
|
if (typeof values[i].id == 'undefined')
|
||||||
|
Loading…
Reference in New Issue
Block a user