forked from extern/egroupware
fix for custom-fields values are always empty in edit
This commit is contained in:
parent
cbff06a182
commit
2c06187479
@ -793,6 +793,7 @@
|
||||
/* merge in extra fields */
|
||||
$qfields = $this->contacts->stock_contact_fields + $this->extrafields + $customfields;
|
||||
$fields = $this->bo->read_entry(array('id' => $GLOBALS['HTTP_GET_VARS']['ab_id'], 'fields' => $qfields));
|
||||
|
||||
$this->addressbook_form('edit','menuaction=addressbook.uiaddressbook.edit',lang('Edit'),$fields[0],$customfields);
|
||||
|
||||
$GLOBALS['phpgw']->template->set_file(array('edit' => 'edit.tpl'));
|
||||
@ -949,6 +950,9 @@
|
||||
|
||||
$GLOBALS['phpgw']->template->set_var('lang_viewpref',lang('Address book - view') . $noprefs);
|
||||
|
||||
unset($qfields['email_type']); // noone is useing that any more
|
||||
unset($qfields['privat_email_type']);
|
||||
|
||||
@reset($qfields);
|
||||
while(list($column,$null) = @each($qfields))
|
||||
{
|
||||
@ -1508,7 +1512,7 @@
|
||||
<tr bgcolor="' . $GLOBALS['phpgw_info']['theme']['row_off'] . '">
|
||||
<td> </td>
|
||||
<td><font color="' . $GLOBALS['phpgw_info']['theme']['th_text'] . '" face="" size="-1">'.$value.':</font></td>
|
||||
<td colspan="3"><INPUT size="30" name="entry[' . $name . ']" value="' . $fields[$value] . '"></td>
|
||||
<td colspan="3"><INPUT size="30" name="entry[' . $name . ']" value="' . $fields[$name] . '"></td>
|
||||
</tr>
|
||||
';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user