mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 14:04:30 +02:00
Fixed exception occuring when deleting an element
This commit is contained in:
parent
289e6f3d1c
commit
49cf20545f
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ class EventLoggerSubscriber implements EventSubscriber
|
||||||
|
|
||||||
$logEntry->setOldData($old_data);
|
$logEntry->setOldData($old_data);
|
||||||
|
|
||||||
if ($new_data !== []) {
|
if ($new_data !== [] && $new_data !== null) {
|
||||||
$new_data = $this->filterFieldRestrictions($entity, $new_data);
|
$new_data = $this->filterFieldRestrictions($entity, $new_data);
|
||||||
$new_data = $this->fieldLengthRestrict($new_data);
|
$new_data = $this->fieldLengthRestrict($new_data);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue