mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-12 19:14:10 +01:00
Make sure there's an app set, otherwise set it from top of the list
This commit is contained in:
parent
48f1278cd5
commit
4b655bf542
@ -754,6 +754,11 @@ var et2_link_entry = et2_inputWidget.extend(
|
||||
if(typeof this.options.value == 'object' && !this.options.value.app)
|
||||
{
|
||||
this.options.value.app = egw.preference('link_app',this.options.value.to_app || this.egw().getAppName());
|
||||
// If there's no value set for app, then take the first one from the selectbox
|
||||
if (typeof this.options.value.app == 'undefined' || this.options.value.app)
|
||||
{
|
||||
this.options.value.app = Object.keys(this.options.select_options)[0];
|
||||
}
|
||||
this.app_select.val(this.options.value.app);
|
||||
}
|
||||
return this._super.apply(this,arguments);
|
||||
|
Loading…
Reference in New Issue
Block a user