mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 13:39:23 +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
|
// create column list and the top row of the table based on user prefs
|
||||||
while ($column = each($this->stock_contact_fields)) {
|
while ($column = each($this->stock_contact_fields)) {
|
||||||
$test = strtolower($column[1]);
|
$test = strtolower($column[0]);
|
||||||
if (isset($phpgw_info["user"]["preferences"]["addressbook"][$test]) &&
|
if (isset($phpgw_info["user"]["preferences"]["addressbook"][$test]) &&
|
||||||
$phpgw_info["user"]["preferences"]["addressbook"][$test]) {
|
$phpgw_info["user"]["preferences"]["addressbook"][$test]) {
|
||||||
$showcol = display_name($column[0]);
|
$showcol = display_name($column[0]);
|
||||||
|
@ -90,8 +90,8 @@
|
|||||||
while (list($col, $descr) = each($qfields)) {
|
while (list($col, $descr) = each($qfields)) {
|
||||||
// echo "<br>test: $col - $i $j - " . count($abc);
|
// echo "<br>test: $col - $i $j - " . count($abc);
|
||||||
$i++; $j++;
|
$i++; $j++;
|
||||||
$showcol = display_name($descr);
|
$showcol = display_name($col);
|
||||||
if (!$showcol) { $showcol = $descr; }
|
if (!$showcol) { $showcol = $col; }
|
||||||
// yank the *'s prior to testing for a valid column description
|
// yank the *'s prior to testing for a valid column description
|
||||||
$coltest = ereg_replace("\*","",$showcol);
|
$coltest = ereg_replace("\*","",$showcol);
|
||||||
if ($coltest) {
|
if ($coltest) {
|
||||||
|
Loading…
Reference in New Issue
Block a user