Fix deleting last element from saved folder + Fix displaying empty saved folder
This commit is contained in:
@@ -911,7 +911,7 @@ class Item extends BaseObject
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($files)) {
|
||||
if (!is_null($files)) {
|
||||
Term::insertFromFileFieldByItemId($item['id'], $files);
|
||||
if (!empty($item['file'])) {
|
||||
DBA::update('item', ['file' => ''], ['id' => $item['id']]);
|
||||
|
||||
Reference in New Issue
Block a user