Issue 14275: Avoid "Data too long" error

This commit is contained in:
Michael 2025-01-05 21:35:06 +00:00
parent 7a7a74d93e
commit fff8cf1c34

View file

@ -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 {