?
avatar astridx
astridx
8 Apr 2021

Steps to reproduce the issue

  1. Open com_contact and check the search tools

  2. Delete line multiple="true" in

  3. Open com_contact again and check the search tools

Expected result

You see the placeholder hint regardless of whether multiple is selected.

Actual result

You only see the placeholder hint together with multiple. So it is not possible to filter for the first option in the first attempt. The filter only works when an option changes.

System information (as much as possible)

php: Linux php74 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64
dbserver: mysql
dbversion: 10.5.9-MariaDB
dbcollation: utf8mb4_unicode_ci
dbconnectioncollation: utf8mb4_general_ci
dbconnectionencryption:
dbconnencryptsupported: false
phpversion: 7.4.16
server: Apache/2.4.46 (Unix) OpenSSL/1.1.1k
sapi_name: fpm-fcgi
version: Joomla! 4.0.0-beta8-dev Development [ MaƱana ] 2-February-2021 20:02 GMT
useragent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0

avatar astridx astridx - open - 8 Apr 2021
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2021
Title
[4.0] <joomla-field-fancy-select> only show placeholder hint together with multiple
[4.0] only show placeholder hint together with multiple
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Apr 2021
avatar astridx astridx - change - 8 Apr 2021
The description was changed
avatar astridx astridx - edited - 8 Apr 2021
avatar astridx astridx - change - 8 Apr 2021
The description was changed
avatar astridx astridx - edited - 8 Apr 2021
avatar astridx astridx - change - 8 Apr 2021
The description was changed
avatar astridx astridx - edited - 8 Apr 2021
avatar astridx astridx - change - 8 Apr 2021
The description was changed
avatar astridx astridx - edited - 8 Apr 2021
avatar brianteeman
brianteeman - comment - 9 Apr 2021

Not sure what your issue is. the layout you are referring to only makes sense to use when it is a multiple select. If you wanted the category field to be a single select then you would change the xml to the following

		<field
			name="category_id"
			type="category"
			label="JCATEGORY"
			extension="com_content"
			hint="JOPTION_SELECT_CATEGORY"
			onchange="this.form.submit();"
			published="0,1,2"
			>
			<option value="">JOPTION_SELECT_CATEGORY</option>
		</field>

image

avatar astridx
astridx - comment - 9 Apr 2021

Thank you @brianteeman .

You are right. I used the Category Field as a template for my own field and didn't think any further.

But actually you didn't need the multiple option with <joomla-field-fancy-select> then and it just confuses because it has to be there and it has to be true, right?

avatar astridx astridx - change - 9 Apr 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-04-09 06:28:10
Closed_By astridx
avatar astridx astridx - close - 9 Apr 2021
avatar brianteeman
brianteeman - comment - 9 Apr 2021

No problem

Add a Comment

Login with GitHub to post a comment