Fix unwanted apps showing in link-app

This commit is contained in:
Nathan Gray 2014-10-01 15:15:33 +00:00
parent 3abff57761
commit 3ec23b92fd

View File

@ -1811,7 +1811,8 @@ var et2_link_add = et2_inputWidget.extend(
}
this.app_select = et2_createWidget("link-apps", jQuery.extend({},this.options,{
'id': this.options.id + 'app',
value: this.options.application ? this.options.application : this.options.value && this.options.value.add_app ? this.options.value.add_app : null
value: this.options.application ? this.options.application : this.options.value && this.options.value.add_app ? this.options.value.add_app : null,
application_list: this.options.application ? this.options.application : null
}) ,this);
this.div.append(this.app_select.getDOMNode());
this.button = et2_createWidget("button", {id:this.options.id+"_add",label: this.egw().lang("add")}, this);