Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
commit
ad3b4d9647
|
@ -74,9 +74,11 @@ class Upload extends Model
|
|||
$model = new static();
|
||||
|
||||
// Informazioni di base
|
||||
$name = $data['name'] ?? $name;
|
||||
$name ??= basename($source);
|
||||
$original_name = basename($source) ?? $name;
|
||||
if (empty($name)) {
|
||||
$name = $data['name'] ?? ($source['name'] ?? $source);
|
||||
}
|
||||
|
||||
$original_name = $source['name'] ?? $name;
|
||||
$category = $data['category'] ?? $category;
|
||||
|
||||
// Nome e categoria dell'allegato
|
||||
|
|
Loading…
Reference in New Issue