mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Correct column name selection and prefs to use name value of stock_fields array
This commit is contained in:
parent
b6812c3df5
commit
d77f03f084
@ -49,7 +49,7 @@
|
||||
|
||||
// create column list and the top row of the table based on user prefs
|
||||
while ($column = each($this->stock_contact_fields)) {
|
||||
$test = strtolower($column[1]);
|
||||
$test = strtolower($column[0]);
|
||||
if (isset($phpgw_info["user"]["preferences"]["addressbook"][$test]) &&
|
||||
$phpgw_info["user"]["preferences"]["addressbook"][$test]) {
|
||||
$showcol = display_name($column[0]);
|
||||
|
@ -90,8 +90,8 @@
|
||||
while (list($col, $descr) = each($qfields)) {
|
||||
// echo "<br>test: $col - $i $j - " . count($abc);
|
||||
$i++; $j++;
|
||||
$showcol = display_name($descr);
|
||||
if (!$showcol) { $showcol = $descr; }
|
||||
$showcol = display_name($col);
|
||||
if (!$showcol) { $showcol = $col; }
|
||||
// yank the *'s prior to testing for a valid column description
|
||||
$coltest = ereg_replace("\*","",$showcol);
|
||||
if ($coltest) {
|
||||
|
Loading…
Reference in New Issue
Block a user