AnsweredAssumed Answered

How to edit time portion of a datetime field in editview?

Question asked by taneal bhandari on Oct 21, 2015
Latest reply on Oct 20, 2016 by taneal bhandari
Hi!  Our setup is Sugar Professional 6.5.7, IIS 6.1, SQL Server 2008, and Chrome.  We have a custom module, and in this module we have a standard datetime field.  I have it defined in my vardefs like:

'referralreceived' => array(  'required' => false,
    'name' => 'referralreceived',
    'vname' => 'LBL_REFERRALRECEIVED',
    'type' => 'datetime',
    'massupdate' => 0,
  'help' => '',
    'duplicate_merge' => 'disabled',
    'duplicate_merge_dom_value' => 0,
    'audited' => 1,
    'reportable' => 1,
),


Here's what it looks like in editviewdefs:
        array(         array('name' => 'referralreceived', 'label' => 'LBL_REFERRALRECEIVED'),
         NULL,
         NULL
        )



The issue that we're having is that in editview, we cannot edit the time portion of this field.  It only lets you edit the date part, and then saves a default time value of "04:00:00" for the time.  Am I doing something incorrectly?

Outcomes