Skip to content

Commit

Permalink
Merge pull request #402 from t3solution/5.3.14
Browse files Browse the repository at this point in the history
Bugfix release v5.3.14
  • Loading branch information
t3solution authored Aug 18, 2024
2 parents 9c76d14 + af47812 commit e743c30
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions Classes/Controller/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ protected function getNewConfig(Config $rootConfig): Config
$get = 'get'.$var;
$newConfig->$set($rootConfig->$get());
}
$this->configRepository->add($newConfig);

return $newConfig;
}
Expand Down
13 changes: 6 additions & 7 deletions Classes/Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public function newAction(): ResponseInterface
$assignedOptions = parent::getFieldsOptions();
$assignedOptions['pid'] = $this->currentUid;
$assignedOptions['tcaColumns'] = parent::getTcaColumns();
$assignedOptions['admin'] = $this->isAdmin;

if ($this->rootConfig) {
// config from rootline
Expand All @@ -162,13 +163,10 @@ public function newAction(): ResponseInterface
$newConfig = new Config();
// some defaults
$newConfig = parent::setDefaults($newConfig);
$assignedOptions['newConfig'] = $newConfig;
$this->configRepository->add($newConfig);
}
$assignedOptions['settings'] = $this->settings;

$moduleTemplate = $this->moduleTemplateFactory->create($this->request);
$moduleTemplate->assignMultiple($assignedOptions);
return $moduleTemplate->renderResponse('Config/Edit');
return $this->redirect('list', null, null, ['created' => true]);
}


Expand All @@ -182,7 +180,7 @@ public function createAction(Config $newConfig): ResponseInterface
$this->configRepository->add($newConfig);
parent::setDefaultBackendLayout();
parent::writeConstants();
return $this->redirect('list', null, null, array('created' => true));
return $this->redirect('list', null, null, ['created' => true]);
}


Expand Down Expand Up @@ -230,13 +228,14 @@ public function updateAction(Config $config): ResponseInterface
{
$config->setHomepageUid($this->rootPageId);
$this->configRepository->update($config);
$this->persistenceManager->persistAll();
parent::writeConstants();
if (!empty($this->settings['clearPageCache'])) {
$cacheService = GeneralUtility::makeInstance(CacheService::class);
$cacheService->clearPageCache();
}

return $this->redirect('edit', null, null, array('config' => $config, 'updated' => true));
return $this->redirect('edit', null, null, ['config' => $config, 'updated' => true]);
}


Expand Down
1 change: 0 additions & 1 deletion Resources/Private/Backend/Templates/Config/List.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
<f:section name="content">

<f:if condition="{deleted}">
<f:asset.script identifier="identifiertest">
require(['TYPO3/CMS/Backend/Notification'], function(Notification) {
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'title' => 'Bootstrap Components',
'description' => 'Startup extension to use bootstrap 5 classes, components and more out of the box. Example and info: www.t3sbootstrap.de',
'category' => 'templates',
'version' => '5.3.13',
'version' => '5.3.14',
'state' => 'stable',
'author' => 'Helmut Hackbarth',
'author_email' => 'typo3@t3solution.de',
Expand Down

1 comment on commit e743c30

@t3solution
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugfix release

Please sign in to comment.