Hi,
I notice there is a ‘Time’ field available in include/sugarfields/time, but for some reason this doesn’t appear as an option in studio, which only allows me to create a ‘DateTime’ field type.
I am trying to add a Time field with the following :-
custom\Extension\modules\AOS_Products\Ext\Vardefs_create_field_StartTime.php
<?php
$dictionary['AOS_Products']['fields']['startTime'] = array(
'name' => 'startTime',
'vname' => 'LBL_STARTTIME',
'type' => 'time',
'studio' => true,
'massupdate' => 0,
'importable' => 'true',
'duplicate_merge' => 'disabled',
'audited' => false,
'reportable' => true,
'unified_search' => false,
'merge_filter' => 'disabled',
'size' => '11',
'help' => '',
'dbType' => 'time',
'comment' => 'Start time',
);
After running a quick repair the field is added to studio and i can change the values in Edit/Detail views.
However, for some reason the field will only save in the ‘hidden’ section of listview. It won’t save if i move it over to ‘available’ and ‘default’.
Am i missing something in the vardef?