Browse Source

Change how to decide between empty update and not called field file

pull/6152/head
Jonny Tischbein 3 years ago
parent
commit
458b0f3545
2 changed files with 1 additions and 4 deletions
  1. +0
    -3
      src/Model/FileTag.php
  2. +1
    -1
      src/Model/Item.php

+ 0
- 3
src/Model/FileTag.php View File

@ -291,9 +291,6 @@ class FileTag
}
$fields = ['file' => str_replace($pattern, '', $item['file'])];
if ($fields === '') {
$fields = null;
}
Item::update($fields, ['id' => $item_id]);


+ 1
- 1
src/Model/Item.php View File

@ -832,7 +832,7 @@ class Item extends BaseObject
$files = $fields['file'];
$fields['file'] = null;
} else {
$files = '';
$files = null;
}
$delivery_data = ['postopts' => defaults($fields, 'postopts', ''),


Loading…
Cancel
Save