Skip to content

Commit

Permalink
Merge pull request #3754 from BacLuc/revert-quickfix-category
Browse files Browse the repository at this point in the history
Revert "CategoryCreateProcessor: set timestampable properties manually"
  • Loading branch information
usu authored Sep 12, 2023
2 parents 04df04d + db3a5cd commit f2eca0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions api/src/Entity/ContentNode/ColumnLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,4 @@ public function getSupportedSlotNames(): array {

return $columns->map(fn (array $element) => $element['slot'])->getValues();
}

public function updateCreateTime(): void {
$this->createTime = new \DateTime();
}

public function updateUpdateTime(): void {
$this->updateTime = new \DateTime();
}
}
8 changes: 0 additions & 8 deletions api/src/State/CategoryCreateProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ public function onBefore($data, Operation $operation, array $uriVariables = [],
->findOneBy(['name' => 'ColumnLayout'])
;
$rootContentNode->data = ['columns' => [['slot' => '1', 'width' => 12]]];
/*
* Set the timestampable properties here by hand, because only in production
* this does not work.
* Remove this again as soon as https://github.com/ecamp/ecamp3/issues/3662 is really fixed.
*/
$rootContentNode->updateCreateTime();
$rootContentNode->updateUpdateTime();

$data->setRootContentNode($rootContentNode);

return $data;
Expand Down

0 comments on commit f2eca0b

Please sign in to comment.