Skip to content

Commit

Permalink
[BUGFIX] Add default value to TCA config (#157)
Browse files Browse the repository at this point in the history
* [BUGFIX] Add default value to TCA config

Avoid error when copying page.

Fixes #111

* [TASK] Limit size of input field

As `maxitems` = 1 it's suitable to limit the
size of the field to `1` as well.

Fixes: #84
  • Loading branch information
rintisch authored Jun 3, 2024
1 parent 4f6c70d commit 118c565
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
'foreign_table' => 'tx_cartproducts_domain_model_product_product',
'minitems' => 0,
'maxitems' => 1,
'default' => 0,
'size' => 1,
],
],
];
Expand Down

0 comments on commit 118c565

Please sign in to comment.