viur-framework / viur-core

The core component of ViUR, the Python framework for modern web development.
https://www.viur.dev
MIT License
13 stars 14 forks source link

fix: `Skeleton.toDB()`s `is_add` determined wrong #1248

Closed phorward closed 3 months ago

phorward commented 3 months ago

This is a hotfix for the problem that is_add is being set based on if the key is set or not. Furthermore, it is determined twice, so that the "magic"-bullshit now was moved into the transaction. It is a fix for PR #973 but previous implementation was also wrong.