From: Vincent Vanwaelscappel Date: Wed, 17 Aug 2022 08:14:04 +0000 (+0200) Subject: wait #5383 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=380d960a34aa99fd0547c249027bc0577fdc0336;p=fluidbook-toolbox.git wait #5383 @0.25 --- diff --git a/app/Console/Commands/WorkshopMigration.php b/app/Console/Commands/WorkshopMigration.php index 1a0235a0a..5130038d3 100644 --- a/app/Console/Commands/WorkshopMigration.php +++ b/app/Console/Commands/WorkshopMigration.php @@ -204,6 +204,8 @@ class WorkshopMigration extends CubistCommand $date = new \DateTime(); $date->setTimestamp($v); $v = $date; + } else if ($k == 'chapters') { + $v = $this->_normalizeChapters($v); } $c->setAttribute($new, $v); } @@ -225,8 +227,6 @@ class WorkshopMigration extends CubistCommand $date = new \DateTime(); $date->setTimestamp($data); $data = $date; - } else if ($k == 'chapters') { - $data = $this->_normalizeChapters($data); } if (isset($mapValues[$data])) { $data = $mapValues[$data]; @@ -284,8 +284,6 @@ class WorkshopMigration extends CubistCommand } $res[$k] = $chapter; } - - return $res; } }