mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Some "invalid option" fixes:
- Don't notify user, just log it to the console - Fix calendar owner filtered out not loaded options
This commit is contained in:
parent
91b94a5126
commit
d5d217c589
@ -530,7 +530,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
|
||||
const missing = value.filter(v => !this.select_options.some(option => option.value == v));
|
||||
if(missing.length > 0)
|
||||
{
|
||||
this.helpText = this.egw().lang("Invalid option '%1' removed", missing.join(", "));
|
||||
console.warn("Invalid option '" + missing.join(", ") + " ' removed");
|
||||
value = value.filter(item => missing.indexOf(item) == -1);
|
||||
}
|
||||
}
|
||||
|
@ -96,6 +96,19 @@ export class CalendarOwner extends Et2Select
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Check a value for missing options and remove them.
|
||||
*
|
||||
* Override to allow any value, since we won't have all options
|
||||
*
|
||||
* @param {string[]} value
|
||||
* @returns {string[]}
|
||||
*/
|
||||
filterOutMissingOptions(value : string[]) : string[]
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override icon for the select option to use lavatar
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user