remove addressbook-email from app-list in link widgets

This commit is contained in:
Ralf Becker 2014-09-03 12:53:43 +00:00
parent 311a2efe53
commit cf7f5fef7e

View File

@ -474,8 +474,11 @@ var et2_link_apps = et2_selectbox.extend(
// Limit to one app // Limit to one app
if(_attrs.only_app) { if(_attrs.only_app) {
select_options[_attrs.only_app] = this.egw().lang(_attrs.only_app); select_options[_attrs.only_app] = this.egw().lang(_attrs.only_app);
} else if (_attrs.application_list) {
select_options = _attrs.application_list;
} else { } else {
select_options = _attrs.application_list ? _attrs.application_list : egw.link_app_list('query'); select_options = egw.link_app_list('query');
delete select_options['addressbook-email'];
} }
_attrs.select_options = select_options; _attrs.select_options = select_options;
this._super.apply(this, arguments); this._super.apply(this, arguments);
@ -729,6 +732,7 @@ var et2_link_entry = et2_inputWidget.extend(
else else
{ {
_attrs["select_options"] = this.egw().link_app_list('query'); _attrs["select_options"] = this.egw().link_app_list('query');
delete _attrs["select_options"]["addressbook-email"];
} }
// Check whether the options entry was found, if not read it from the // Check whether the options entry was found, if not read it from the