Skip to content

Commit 57ca66b

Browse files
authored
Forwards compatibility with Contao 5.5 (see #113)
1 parent 4d06005 commit 57ca66b

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"php": "^8.1",
2727
"ext-json": "*",
2828
"ext-dom": "*",
29-
"contao/core-bundle": "^4.13 || ^5.1",
29+
"contao/core-bundle": "^4.13 || ^5.3",
3030
"doctrine/dbal": "^3.3",
3131
"psr/log": "^1.0 || 2.0 || ^3.0",
3232
"symfony/config": "^5.4 || ^6.4 || ^7.0",

contao/dca/tl_style_manager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
'operations' => [
4545
'edit' => [
4646
'href' => 'act=edit',
47-
'icon' => 'edit.svg'
47+
'icon' => 'edit.svg',
48+
'primary' => true
4849
],
4950
'copy' => [
5051
'href' => 'act=paste&mode=copy',

contao/dca/tl_style_manager_archive.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@
5656
'operations' => [
5757
'edit' => [
5858
'href' => 'act=edit',
59-
'icon' => 'edit.svg'
59+
'icon' => 'edit.svg',
60+
'primary' => true
6061
],
6162
'children' => [
6263
'href' => 'table=tl_style_manager',
63-
'icon' => 'children.svg'
64+
'icon' => 'children.svg',
65+
'primary' => true
6466
],
6567
'copy' => [
6668
'href' => 'act=copy',

src/Widget/ComponentStyleSelect.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ public function generate()
217217
if(!!$objStyleGroup->chosen)
218218
{
219219
$strClass .= ' tl_chosen';
220+
$this->arrAttributes['data-controller'] = trim(($this->arrAttributes['data-controller'] ?? '') . ' contao--choices');
220221
}
221222

222223
// create collection

0 commit comments

Comments
 (0)