Skip to content

Commit

Permalink
41844: Fehlerhafte Darstellung selbst definierter Absatzformate beim …
Browse files Browse the repository at this point in the history
…'Seite bearbeiten'
  • Loading branch information
alex40724 committed Jan 16, 2025
1 parent eea2b8d commit f333058
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
40 changes: 40 additions & 0 deletions Services/Style/Content/Setup/class.ilStyle9HotfixDBUpdateSteps.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
* ILIAS is licensed with the GPL-3.0,
* see https://www.gnu.org/licenses/gpl-3.0.en.html
* You should have received a copy of said license along with the
* source code, too.
* If this is not the case or you just want to try ILIAS, you'll find
* us at:
* https://www.ilias.de
* https://github.com/ILIAS-eLearning
*/

namespace ILIAS\Style\Content\Setup;

class ilStyle9HotfixDBUpdateSteps implements \ilDatabaseUpdateSteps
{
protected \ilDBInterface $db;

public function prepare(\ilDBInterface $db): void
{
$this->db = $db;
}

public function step_1()
{
$this->db->update(
"style_data",
[
"uptodate" => ["integer", 0]
],
[ // where
"uptodate" => ["integer", 1]
]
);
}

}
7 changes: 6 additions & 1 deletion Services/Style/classes/Setup/class.ContentStyleAgent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
);
}
}

0 comments on commit f333058

Please sign in to comment.