Description
Bug report
I'm using this repeatable field to handle a list of images:
$multimedia_tab = __('backend/place.tabs.gallery');
CRUD::field('gallery')
->label(__('backend/place.gallery.menu_title'))
->type('repeatable')
->tab($multimedia_tab)
->subfields([
[
'name' => 'alt_text',
'wrapper' => ['class' => 'form-group col-md-6'],
],
[
'name' => 'image',
'label' => __('backend/place.gallery.image'),
'type' => 'image',
'withFiles' => [
'disk' => 'uploads',
'path' => 'places',
],
'wrapper' => ['class' => 'form-group col-md-6'],
],
]);
What I did
I have created a record with a list of images, all of them was created succesfully. Then I have updated the entity without inserting any images (just text changes) and the images has gone.
What I expected to happen
When no new images are inserted then they shouldn't be removed.
What happened
The images was removed but I just updated a text field.
What I've already tried to fix it
If I change the type in "upload" all works well, but why?
Is it a bug in the latest version of Backpack?
After I run composer update backpack/crud
the bug... is it still there?
yes.
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version
the output is:
backpack/basset: 1.3.6
backpack/crud: 6.7.43
backpack/filemanager: 3.0.10
backpack/generators: v4.0.7
backpack/logmanager: v5.0.2
backpack/medialibrary-uploaders: 1.2.1
backpack/pagemanager: 3.3.2
backpack/permissionmanager: 7.2.1
backpack/pro: 2.2.29
backpack/settings: 3.1.1
backpack/theme-tabler: 1.2.15
Metadata
Metadata
Assignees
Type
Projects
Status