Fix unwanted apps showing in link-app

This commit is contained in:
Nathan Gray 2014-09-24 16:15:24 +00:00
parent 5fecd38001
commit 812518f72f

View File

@ -1803,7 +1803,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);