-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default value for removed image is different from an image that was never set #31
Comments
It's fixed now? |
I don't see any fix on the repository, I still have the problem. |
The solution is to change in the AppSettings->uploadFile() method As the repository seems dead and QCod\AppSettings\Setting\AppSettings is hardcoded in multiple places to make it easily instantiable, a quick solution is to redefine the store function using a custom AppSettingController so you can force a remove of the unused keys. Example: App\Http\Controllers\AppSettingController.php
config/app_settings.php change
to
|
I noticed that calling
setting('img_setting', 'default_img')
on a setting of typeimage
has a different behavior depending if the value has never been set or if the value has been set and then the image has been removed later.In the first case
default_img
is returned, in the second onenull
is returned.I think that in both cases
default_img
should be returned.The text was updated successfully, but these errors were encountered: