]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5395 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 8 Mar 2023 10:22:06 +0000 (11:22 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 8 Mar 2023 10:22:06 +0000 (11:22 +0100)
app/Console/Commands/WorkshopMigration.php

index c3d7ed02a2e39fec3f1d76313dc7e6982499a720..a044d101e5dc2d2029552383a5caeee310720c19 100644 (file)
@@ -240,6 +240,9 @@ class WorkshopMigration extends CubistCommand
                 if (in_array($k, $ignore)) {
                     continue;
                 }
+                if ($k === 'pages') {
+                    $c->setAttribute('c_pages', max($data, count(explode(',', $e->numerotation))));
+                }
                 if (!$c->hasField($k)) {
                     continue;
                 }
@@ -260,6 +263,7 @@ class WorkshopMigration extends CubistCommand
                 if ($k === 'title') {
                     $c->setAttribute('c_title', $data);
                 }
+
             }
 
             // Composition