Infolog: Fix missing field options in site configuration

Using disabled options for always allowed / excluded fields
This commit is contained in:
nathan 2023-02-22 09:54:43 -07:00
parent f7d44c63cb
commit ecd262a093

View File

@ -2479,7 +2479,9 @@ class infolog_ui
public function admin($content = array())
{
$fields = array(
'info_status' => 'Status',
['value' => 'info_status', 'label' => 'Status', 'disabled' => true],
['value' => 'info_percent', 'label' => 'Percent', 'disabled' => true],
['value' => 'info_datecompleted', 'label' => 'date completed', 'disabled' => true],
'info_cat' => 'Category',
'info_from' => 'Contact',
'info_subject' => 'Subject',
@ -2491,7 +2493,6 @@ class infolog_ui
'info_used_time' => 'Used time',
);
$excludefields = array(
'info_id' => 'ID',
'info_cat' => 'Category',
'info_from' => 'Contact',
'info_subject' => 'Subject',
@ -2517,6 +2518,14 @@ class infolog_ui
'info_datecompleted' => 'date completed',
'info_replanned_time' => 're-planned time',
'info_cc' => 'CC',
['value' => 'info_id', 'label' => 'ID', 'disabled' => true],
['value' => 'info_uid', 'label' => 'UID', 'disabled' => true],
['value' => 'info_etag', 'label' => 'ETag', 'disabled' => true],
['value' => 'info_created', 'label' => 'Created date', 'disabled' => true],
['value' => 'info_creator', 'label' => 'Creator', 'disabled' => true],
['value' => 'info_datemodified', 'label' => 'Modified date', 'disabled' => true],
['value' => 'info_modifier', 'label' => 'Modified by', 'disabled' => true],
['value' => 'caldav_name', 'label' => 'CalDAV name', 'disabled' => true],
);
// add customfields to field list
foreach(Api\Storage\Customfields::get('infolog') as $name => $data)