Summary | Display alternativeName in addressbook list |
Queue | Turba |
Queue Version | FRAMEWORK_5_2 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | dreytac (at) homehobby (dot) net |
Created | 03/06/2016 (3404 days ago) |
Due | |
Updated | 10/20/2017 (2811 days ago) |
Assigned | 03/07/2016 (3403 days ago) |
Resolved | 03/07/2016 (3403 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
commit 30afe14574e0c24ee1e19e9b4856e73690451cf8
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Mon, 07 Mar 2016 10:11:30 -0500
Bug: 14280Honor the alternative_name mapping.M lib/Driver.php
https://github.com/horde/turba/commit/30afe14574e0c24ee1e19e9b4856e73690451cf8
State ⇒ Resolved
Turba 4.2.13
commit 62ae628833dd8bc9ca1bcdc5e45c6d8409f5293c
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Mon Mar 7 10:10:52 2016 -0500
Bug: 14280Honor the alternative_name mapping.turba/lib/Driver.php | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
http://github.com/horde/horde/commit/62ae628833dd8bc9ca1bcdc5e45c6d8409f5293c
commit 070ce5795db890fe0191f75cf3acb00c46ccdb19
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Mon Mar 7 10:10:52 2016 -0500
Bug: 14280Honor the alternative_name mapping.turba/lib/Driver.php | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
http://github.com/horde/horde/commit/070ce5795db890fe0191f75cf3acb00c46ccdb19
Version ⇒ FRAMEWORK_5_2
State ⇒ Assigned
Assigned to Michael Rubinsky
Git, though probably needs to be looked at there too.
$results = $driver->search($type_filter, $sortorder, 'AND',
array_merge(array('__uid'), $columns ? $columns : array('name'));
to:
$results = $driver->search($type_filter, $sortorder, 'AND',
array_merge(array('__uid'), $columns ? $columns : array('name',
$driver->alternativeName ? $driver->alternativeName : '')));
fixes the problem.
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Turba
Summary ⇒ Display alternativeName in addressbook list
Type ⇒ Bug
'lastname' field to be optional.
I'm trying to get a company contact to display the 'company' field
rather than the 'name' field on the address book list page. I assumed
the 'alternativeName' field would be displayed (default set to
'company') but it is just displaying "Blank name".
The reason behind this is that in the "lib\View\Browse.php" file, on
line 473, you are querying for either a list of columns or just the
'name' field. Adding the company to the list of columns, then excludes
it in the "templates\browse\row.inc" file on line 6.
The fix for this is to add the 'alternativeName' field to the list of
fields in the "lib\View\Browser.php" file.