From: Vincent Vanwaelscappel Date: Wed, 8 Mar 2023 10:22:06 +0000 (+0100) Subject: wait #5395 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=292bbdda2df6c68cf7cbf920b35d15d1a75f5b01;p=fluidbook-toolbox.git wait #5395 @0.5 --- diff --git a/app/Console/Commands/WorkshopMigration.php b/app/Console/Commands/WorkshopMigration.php index c3d7ed02a..a044d101e 100644 --- a/app/Console/Commands/WorkshopMigration.php +++ b/app/Console/Commands/WorkshopMigration.php @@ -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