diff --git a/src/Model/Photo.php b/src/Model/Photo.php index a0d4d0873e..30660cb56d 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -476,6 +476,8 @@ class Photo 'backend-ref' => $backend_ref ]; + $fields = DI::dbaDefinition()->truncateFieldsForTable('photo', $fields); + if (DBA::isResult($existing_photo)) { $r = DBA::update('photo', $fields, ['id' => $existing_photo['id']]); } else {