Correct column name selection and prefs to use name value of stock_fields array

This commit is contained in:
Miles Lott 2001-03-21 23:57:30 +00:00
parent b6812c3df5
commit d77f03f084
2 changed files with 3 additions and 3 deletions

View File

@ -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]);

View File

@ -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) {