From f333058ed928211a3725015815b7d101dc298f79 Mon Sep 17 00:00:00 2001 From: Alex Killing Date: Thu, 16 Jan 2025 18:11:03 +0100 Subject: [PATCH] 41844: Fehlerhafte Darstellung selbst definierter Absatzformate beim 'Seite bearbeiten' --- .../class.ilStyle9HotfixDBUpdateSteps.php | 40 +++++++++++++++++++ .../classes/Setup/class.ContentStyleAgent.php | 7 +++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 Services/Style/Content/Setup/class.ilStyle9HotfixDBUpdateSteps.php diff --git a/Services/Style/Content/Setup/class.ilStyle9HotfixDBUpdateSteps.php b/Services/Style/Content/Setup/class.ilStyle9HotfixDBUpdateSteps.php new file mode 100644 index 000000000000..79dd61cdd57a --- /dev/null +++ b/Services/Style/Content/Setup/class.ilStyle9HotfixDBUpdateSteps.php @@ -0,0 +1,40 @@ +db = $db; + } + + public function step_1() + { + $this->db->update( + "style_data", + [ + "uptodate" => ["integer", 0] + ], + [ // where + "uptodate" => ["integer", 1] + ] + ); + } + +} diff --git a/Services/Style/classes/Setup/class.ContentStyleAgent.php b/Services/Style/classes/Setup/class.ContentStyleAgent.php index 1fe5c32c0d22..1c9aa9ad93c1 100644 --- a/Services/Style/classes/Setup/class.ContentStyleAgent.php +++ b/Services/Style/classes/Setup/class.ContentStyleAgent.php @@ -24,6 +24,11 @@ class ContentStyleAgent extends Setup\Agent\NullAgent { public function getUpdateObjective(Setup\Config $config = null): Setup\Objective { - return new \ilDatabaseUpdateStepsExecutedObjective(new ilStyleDBUpdateSteps()); + return new Setup\ObjectiveCollection( + 'Content Style Update', + true, + new \ilDatabaseUpdateStepsExecutedObjective(new ilStyleDBUpdateSteps()), + new \ilDatabaseUpdateStepsExecutedObjective(new ilStyle9HotfixDBUpdateSteps()) + ); } }