fnagel / generic-gallery

TYPO3 extension: Generic Gallery - One gallery to rule them all!
https://extensions.typo3.org/extension/generic_gallery/
GNU General Public License v3.0
7 stars 12 forks source link

[BUGFIX] Fix inline collections with strict SQL mode (4.x) #49

Closed cweiske closed 1 year ago

cweiske commented 2 years ago

Set the default value to 0 for inline file collections as well, so that TYPO3 does not throw the following error when saving the gallery plugin after removing the inline collection record:

2: SQL error: 'Incorrect integer value: '' for column typo3srh.tt_content.tx_generic_gallery_collection at row 1' (tt_content:6040)

Resolves: https://github.com/fnagel/generic-gallery/issues/48 Related: https://github.com/fnagel/generic-gallery/issues/35

fnagel commented 1 year ago

Merged with 0de1aa4d06cbace1b97785ce284e85c277678f96 (as rebasing this PR in order to fix the tests seems to much struggle).