Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default value needed #111

Closed
tobiasquadflieg opened this issue Aug 1, 2022 · 3 comments
Closed

Default value needed #111

tobiasquadflieg opened this issue Aug 1, 2022 · 3 comments

Comments

@tobiasquadflieg
Copy link

TYPO3 Version 11.5.13
Webserver nginx/1.20.2
PHP Version 7.4.29
Database MySQL 5.5.5-10.3.34-MariaDB-1:10.3.34+maria~focal-log
cart_products v4.0.6

'default' => 0

if you copy a page typo3 will throw a error

2: SQL error: 'Incorrect integer value: '' for column `db`.`pages`.`cart_products_product` at row 1' (pages:NEW62e783532401f328925358)

@siwa-pparzer
Copy link

can confirm - error still in place

@hannesbochmann
Copy link

I can confirm this, too. Adding a default value in TCA fixes the problem.

rintisch added a commit to rintisch/cart_products that referenced this issue May 31, 2024
Avoid error when copying page.

Fixes extcode#111
extcode pushed a commit that referenced this issue Jun 3, 2024
* [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
@rintisch
Copy link
Collaborator

Closed with #157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants