]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5383 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Aug 2022 08:14:04 +0000 (10:14 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Aug 2022 08:14:04 +0000 (10:14 +0200)
app/Console/Commands/WorkshopMigration.php

index 1a0235a0a1b9c88ad4b2291d32c25785766a0518..5130038d3d0ff59744c781b8a71f994a4c49283f 100644 (file)
@@ -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;
     }
 }