Review main Merged

42653[BUGFIX] Extbase: Cast sys_language_uid to integer in updateObject()

Morton Jonuschat CR +2 V +2 Easy +1 −1 updated 08/15/15, 23:31

Commit message

Inserting a new object into the database is a two step process in
extbase where the first step is creating a mostly blank record to obtain
the uid for the new record and the second step is creating all related
objects updating the initial record with the final values afterwards.
Due to this process the languageUid in the freshly created object can be
NULL, which is then used without a cast in updateObject(). If the
database enforces not inserting NULL values into columns defined as NOT
NULL this leads to SQL errors.

This is fixed by casting the languageUid to int before using it.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1