[eGroupWare-svn] r56078 - /trunk/addressbook/inc/class.addressbook_hooks.inc.php
[email protected] Fri, 06 May 2016 16:16:10 -0000
| Newsgroups | gmane.comp.web.egroupware.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ralfbecker
Date: Fri May 6 18:16:10 2016
New Revision: 56078
URL: http://svn.stylite.de/viewvc/egroupware?rev=56078&view=rev
Log:
suppress empty custom field selection
Modified:
trunk/addressbook/inc/class.addressbook_hooks.inc.php
Modified: trunk/addressbook/inc/class.addressbook_hooks.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/addressbook/inc/class.addressbook_hooks.inc.php?rev=56078&r1=56077&r2=56078&view=diff
==============================================================================
--- trunk/addressbook/inc/class.addressbook_hooks.inc.php (original)
+++ trunk/addressbook/inc/class.addressbook_hooks.inc.php Fri May 6 18:16:10 2016
@@ -146,7 +146,8 @@
'xmlrpc' => True,
'admin' => false,
);
- $fileas_options = ExecMethod('api.EGroupware\\Api\\Contacts.fileas_options');
+ $contacts = new Api\Contacts();
+ $fileas_options = $contacts->fileas_options();
$settings['link_title'] = array(
'type' => 'select',
'label' => 'Link title for contacts show',
@@ -159,15 +160,18 @@
'admin' => false,
'default'=> 'org_name: n_family, n_given',
);
- $settings['link_title_cf'] = array(
- 'type' => 'select',
- 'label' => 'Add a customfield to link title',
- 'name' => 'link_title_cf',
- 'values' => Api\Contacts::cf_options(),
- 'help' => 'Add customfield to links of addressbook, which displays in other applications. The default value is none customfield.',
- 'xmlrpc' => True,
- 'admin' => false,
- );
+ if (($cf_opts = Api\Contacts::cf_options()))
+ {
+ $settings['link_title_cf'] = array(
+ 'type' => 'select',
+ 'label' => 'Add a customfield to link title',
+ 'name' => 'link_title_cf',
+ 'values' => $cf_opts,
+ 'help' => 'Add customfield to links of addressbook, which displays in other applications. The default value is none customfield.',
+ 'xmlrpc' => True,
+ 'admin' => false,
+ );
+ }
$settings['addr_format'] = array(
'type' => 'select',
'label' => 'Default address format',
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z