Fixed notes field not showing up in view

This commit is contained in:
jengo 2000-11-06 09:50:33 +00:00
parent ea1be66ba2
commit d71247ebe6
3 changed files with 12 additions and 2 deletions

View File

@ -31,7 +31,7 @@
} else if (! $submit && ! $add_email) {
form("","add.php","Add","","","");
} else {
if ($bday_month == "" && $bday_day == "" && $bday_year == "") {
if (! $bday_month && ! $bday_day && ! $bday_year) {
$bday = "";
} else {
$bday = "$bday_month/$bday_day/$bday_year";

View File

@ -59,7 +59,12 @@
form("","edit.php","Edit",$fields);
} else {
$bday = $bday_month . "/" . $bday_day . "/" . $bday_year;
if (! $bday_month && ! $bday_day && ! $bday_year) {
$bday = "";
} else {
$bday = "$bday_month/$bday_day/$bday_year";
}
if ($access != "private" && $access != "public") {
$access = $phpgw->accounts->array_to_string($access,$n_groups);
}

View File

@ -48,6 +48,11 @@
}
}
if ($phpgw->db->f("ab_notes")) {
$columns_to_display[$i]["field_name"] = "Notes";
$columns_to_display[$i]["field_value"] = $phpgw->db->f("ab_notes");
}
echo '<table border="0" cellspacing="2" cellpadding="2" width="80%" align="center">';
for ($i=0;$i<200;) { // The $i<200 is only used for a brake
if (! $columns_to_display[$i]["field_name"]) break;