Skip to content
Snippets Groups Projects
Commit fc62d12d authored by Yas Naoi's avatar Yas Naoi
Browse files

Issue #3266025 by yas, Xiaohua Guan: Fix an error: Object of class...

Issue #3266025 by yas, Xiaohua Guan: Fix an error: Object of class Aws\Api\DateTimeResult could not be converted to int in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::castValue()
parent 25870164
Branches
Tags
6 merge requests!1759Issue #3356778: Release 5.1.1,!1679Issue #3349074: Fix the OpenStack Project create and edit form in SPA that "Member" cannot be saved due to a validation error,!1607Issue #3343582: Add the function to preview OpenStack stack in the SPA,!1032Issue #3284576: Release 5.0.0-alpha2,!832Issue #3274116: Refactor composer.json to use docomoinnovations/drupal-extension,!781Issue #3269930: Add a BDD test suite for checking no resources created by administrator
......@@ -234,13 +234,16 @@ class VolumeCreateForm extends AwsCloudContentForm {
return;
}
$entity->setVolumeId($result['VolumeId']);
$entity->setCreated($result['CreateTime']);
$entity->setState($result['State']);
$entity->setSnapshotName($this->getSnapshotName($entity->getCloudContext(), $entity->getSnapshotId(), $this->getModuleName($entity)));
$entity->setVolumeType($result['VolumeType']);
if(!($entity->setVolumeId($result['VolumeId'])
&& $entity->setCreated(strtotime($result['CreateTime']))
&& $entity->setState($result['State'])
&& $entity->setSnapshotName($this->getSnapshotName($entity->getCloudContext(), $entity->getSnapshotId(), $this->getModuleName($entity)))
&& $entity->setVolumeType($result['VolumeType'])
&& $entity->save())) {
$entity->save();
$this->processOperationErrorStatus($entity, 'created');
return;
}
$this->updateNameAndCreatedByTags($entity, $entity->getVolumeId());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment