forked from Public/pics
EditAlbum: drop old thumbnail id field entirely
This commit is contained in:
parent
2b8b12e065
commit
c9da46b36f
@ -81,11 +81,6 @@ class EditAlbum extends HTMLController
|
|||||||
'label' => 'Parent album',
|
'label' => 'Parent album',
|
||||||
'options' => $parentChoices,
|
'options' => $parentChoices,
|
||||||
],
|
],
|
||||||
'id_asset_thumb' => [
|
|
||||||
'type' => 'numeric',
|
|
||||||
'label' => 'Thumbnail asset ID',
|
|
||||||
'is_optional' => true,
|
|
||||||
],
|
|
||||||
'tag' => [
|
'tag' => [
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'label' => 'Album title',
|
'label' => 'Album title',
|
||||||
@ -115,9 +110,6 @@ class EditAlbum extends HTMLController
|
|||||||
'limit' => 500,
|
'limit' => 500,
|
||||||
'id_tag' => $id_tag,
|
'id_tag' => $id_tag,
|
||||||
], true);
|
], true);
|
||||||
|
|
||||||
if ($num_assets > 0)
|
|
||||||
unset($fields['id_asset_thumb']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->form = new Form([
|
$this->form = new Form([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user