remove addressbook-email from app-list in link widgets

This commit is contained in:
Ralf Becker 2014-09-03 12:54:09 +00:00
parent 3f9eae4940
commit 7d5ed49395

View File

@ -474,8 +474,11 @@ var et2_link_apps = et2_selectbox.extend(
// Limit to one app
if(_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 {
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;
this._super.apply(this, arguments);
@ -729,6 +732,7 @@ var et2_link_entry = et2_inputWidget.extend(
else
{
_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