extcode / cart_products

CartProducts is a TYPO3 extension and provides an own data storage for simple and configurable products. Products can be offered via a list and detail view and can be purchased via cart function of the Cart extension.
7 stars 25 forks source link

Default value needed #111

Open tobiasquadflieg opened 2 years ago

tobiasquadflieg commented 2 years ago

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

https://github.com/extcode/cart_products/blob/a203f135f1375e5d5e8aaf871ef5bc7dcc0bf0cd/Configuration/TCA/Overrides/pages.php#L40

'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 commented 1 year ago

can confirm - error still in place

hannesbochmann commented 11 months ago

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