Make filename unique for each area, rename column to name/lname for files

This commit is contained in:
2023-06-23 17:33:47 +10:00
parent 0eca20ebdd
commit b8534d8598
4 changed files with 42 additions and 8 deletions

View File

@@ -116,7 +116,7 @@ class Item
return $this->file_name;
case 'sendas':
return $this->file_name ? basename($this->file_name) : $this->filemodel->file;
return $this->file_name ? basename($this->file_name) : $this->filemodel->name;
default:
throw new Exception('Unknown key: '.$key);