Skip to content
Snippets Groups Projects
Verified Commit d29ec1ae authored by Damien's avatar Damien
Browse files

FEAT #14469 TIME 0:20 Fix migrate working days

parent c09bf36f
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ foreach ($customs as $custom) { ...@@ -14,7 +14,7 @@ foreach ($customs as $custom) {
$workingDays = 1; $workingDays = 1;
$xmlfile = null; $xmlfile = null;
$path = "custom/{$custom}/apps/maarch_entreprise/xml/features.xml"; $path = "custom/{$custom}/apps/maarch_entreprise/xml/features.xml";
if (file_exists($path)) { if (is_file($path)) {
$xmlfile = simplexml_load_file($path); $xmlfile = simplexml_load_file($path);
if ($xmlfile) { if ($xmlfile) {
...@@ -36,6 +36,9 @@ foreach ($customs as $custom) { ...@@ -36,6 +36,9 @@ foreach ($customs as $custom) {
} }
} }
\SrcCore\models\DatabasePDO::reset();
new \SrcCore\models\DatabasePDO(['customId' => $custom]);
\Parameter\models\ParameterModel::delete(['id' => 'workingDays']); \Parameter\models\ParameterModel::delete(['id' => 'workingDays']);
\Parameter\models\ParameterModel::create([ \Parameter\models\ParameterModel::create([
'id' => 'workingDays', 'id' => 'workingDays',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment