Closed holyboly closed 1 year ago
If you group the file / image field into a Panel like this:
Panel::make(__('CompanyInformation'), [ Image::make(__('Logo'), 'company_logo')->prunable(), ]),
Then the deleteImage method from the SettingsController does not recognize the field, but the panel, which does not has an attribute with the field name:
deleteImage
SettingsController
$field = collect(NovaSettings::getFields($pathName))->firstWhere('attribute', $fieldName);
Cannot overwrite the Controller myself afaik.
Same issue with the eminiarts/nova-tabs field.
Fixed by @marttinnotta in version 5.1.0. Good luck!
If you group the file / image field into a Panel like this:
Then the
deleteImage
method from theSettingsController
does not recognize the field, but the panel, which does not has an attribute with the field name:Cannot overwrite the Controller myself afaik.