mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°7145 - UI - Init Value DateTime and Date with Day Time (Add default values on mandatory dates)
This commit is contained in:
@@ -91,7 +91,7 @@ class SynchroDataSource extends cmdbAbstractObject
|
||||
'depends_on' => array(),
|
||||
)));
|
||||
|
||||
//MetaModel::Init_AddAttribute(new AttributeDateTime("last_synchro_date", array("allowed_values"=>null, "sql"=>"last_synchro_date", "default_value"=>"", "is_null_allowed"=>false, "depends_on"=>array())));
|
||||
//MetaModel::Init_AddAttribute(new AttributeDateTime("last_synchro_date", array("allowed_values"=>null, "sql"=>"last_synchro_date", "default_value"=>"NOW()", "is_null_allowed"=>false, "depends_on"=>array())));
|
||||
|
||||
// Format: seconds (int)
|
||||
MetaModel::Init_AddAttribute(new AttributeDuration('full_load_periodicity', array(
|
||||
@@ -2027,7 +2027,7 @@ class SynchroReplica extends DBObject implements iDisplay
|
||||
MetaModel::Init_AddAttribute(new AttributeDateTime('status_last_seen', array(
|
||||
'allowed_values' => null,
|
||||
'sql' => 'status_last_seen',
|
||||
'default_value' => '',
|
||||
'default_value' => 'NOW()',
|
||||
'is_null_allowed' => false,
|
||||
'depends_on' => array(),
|
||||
)));
|
||||
|
||||
Reference in New Issue
Block a user