v1.6.3 due to git mixup
This commit is contained in:
parent
2a1607c6d9
commit
87241c1f87
@ -1,15 +1,5 @@
|
||||
<?php
|
||||
|
||||
function opencase_entities_update_8013() {
|
||||
$update_manager = \Drupal::entityDefinitionUpdateManager();
|
||||
$definition = $update_manager->getFieldStorageDefinition('activity_date_time', 'oc_activity');
|
||||
// $definition->setDescription('');
|
||||
// $definition->setRequired('');
|
||||
//->setDefaultValueCallback('Drupal\opencase_entities\Entity\OCActivity::currentDateTime')
|
||||
$update_manager->updateFieldStorageDefinition($definition);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add 'activity_date_time' field to 'oc_activity' entities.
|
||||
*/
|
||||
|
@ -86,6 +86,7 @@ class OCActivity extends RevisionableContentEntityBase implements OCActivityInte
|
||||
public static function currentDateTime() {
|
||||
$current_time = DrupalDateTime::createFromTimestamp(time());
|
||||
$formatted = $current_time->format(DateTimeItem::DATETIME_STORAGE_FORMAT);
|
||||
\Drupal::logger("nr_debug")->notice($formatted);
|
||||
return $formatted;
|
||||
}
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@ name: 'OpenCase'
|
||||
type: module
|
||||
description: 'Simple Case Management'
|
||||
core: 8.x
|
||||
version: 8.x-1.6.1
|
||||
version: 8.x-1.6
|
||||
package: 'OpenCase'
|
||||
dependencies:
|
||||
- opencase_entities
|
||||
|
Reference in New Issue
Block a user