Create a field of the type image list and try to insert a default value.
I can insert the file name of an image. I tried every combination of
images/sampledata/fruitshop/apple.jpg.
It is not possible for me to insert any default value. I all the time get the message:
Save failed with the following error: The default value is invalid.
Labels |
Added:
?
|
Title |
|
Title |
|
Title |
|
Title |
|
Category | ⇒ | com_fields |
Title |
|
Title |
|
Status | New | ⇒ | Confirmed |
Title |
|
Title |
|
Title |
|
Guess a path to an image or folder.
It should be one which maxhes an option value of the list. If it doesn't work, then it looks like a bug.
I tried
images
/images/
/images
etc - all fail
By reading the code. It should be the file name of the image you want to be selected by default. For example banner.jpg, osmbanner1.png.... in case you set Directory parameter to banners folder
tried setting Path in PlugIn and only name in Field – no Luck.
@joomdonation Which Joomla Version do you use? The same settings are not working for me with Joomla! 3.7.0-rc1
I am using Joomla! 3.7.0-rc1 dev, so it is outdated. I can try to update to stagging to check if needed
A bug with validate default value of the field, then. I was able to edit code to bypass the check and confirm that default value is the file name of the image you want to be selected by default is correct, only field name, not contains path.
Maybe we can open a separate issue with this validation error?
I can confirm the problem on Joomla! 3.7.2-Dev (nightly Build)
This issue still exists - can not save imagelist field with default value - name of image in selected folder. Any suggested work-arounds?
Joomla 3.7.4
Windows 7.0 Ultimate SP1
IE 11.0.9600.18762 / Update Versions 11.0.45
PHP 7.0.22
MySQL 5.6.31
Status | Confirmed | ⇒ | Discussion |
Wondering if there's been any progress on this? I'm still getting this error as well on Joomla 3.7.3
please upgrade to the latest release 3.8.5
Labels |
Added:
J3 Issue
|
Similar behaviour is observed with the sql field. If entering an ID (corresponding to value) or the text does not matter, same error appears.
When entering the default directly into the database via phpMyAdmin, the expected behaviour is observed, and the default is shown on the "Edit field" page in Joomla Administrator. However, changes can no longer be saved because of the error.
Title |
|
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-04-19 13:15:40 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed as having Pull Request.
@franz-wohlkoenig
Please reopen. Thank you!
Status | Closed | ⇒ | New |
Closed_Date | 2019-04-19 13:15:40 | ⇒ | |
Closed_By | franz-wohlkoenig | ⇒ |
Status | New | ⇒ | Discussion |
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-12-06 15:46:36 |
Closed_By | ⇒ | Quy |
Fixed #26352
Issue confirmed. Tried verious Settings without Success.