Skip to content

Commit

Permalink
Merge pull request #78 from oveleon/bugfix/config-button
Browse files Browse the repository at this point in the history
[Bugfix] Remove strict check for $href in config buttons
  • Loading branch information
doishub authored Feb 27, 2023
2 parents 2b4cd96 + eda1afc commit 38d1118
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function addIdentifierInfo($row, $label)
/**
* @Callback(table="tl_style_manager_archive", target="list.global_operations.import.button")
*/
public function importConfigButton(string $href, string $label, string $title, string $class, string $attributes): string
public function importConfigButton(?string $href, string $label, string $title, string $class, string $attributes): string
{
if(System::getContainer()->getParameter('contao_component_style_manager.use_bundle_config'))
{
Expand All @@ -65,7 +65,7 @@ public function importConfigButton(string $href, string $label, string $title, s
/**
* @Callback(table="tl_style_manager_archive", target="list.global_operations.config.button")
*/
public function bundleConfigButton(string $href, string $label, string $title, string $class, string $attributes): string
public function bundleConfigButton(?string $href, string $label, string $title, string $class, string $attributes): string
{
if(System::getContainer()->getParameter('contao_component_style_manager.use_bundle_config'))
{
Expand Down

0 comments on commit 38d1118

Please sign in to comment.