Hi,
It's hidden even if there is a result.
See screenshots
[SOLVED] Issue with mysql list with "hidden if empty" option enabled
[SOLVED] Issue with mysql list with "hidden if empty" option enabled
Last edited by Didou12 on 17 Jun 2023, 07:47, edited 1 time in total.
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
- support
- Site Admin
- Posts: 6231
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Issue with mysql list with "hidden if empty" option enabled
Found issue. File from archive replace to includes\classes\fieldstypes\
Then go to field settings and recheck this option again.
Then go to field settings and recheck this option again.
- Attachments
-
- fieldtype_items_by_query.zip
- (2.75 KiB) Downloaded 28 times
Re: Issue with mysql list with "hidden if empty" option enabled
Ok, now, checked or not checked the field is displayed (even with 0 result)
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
- support
- Site Admin
- Posts: 6231
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Issue with mysql list with "hidden if empty" option enabled
Make sure Debug mode is OFF.
Re: Issue with mysql list with "hidden if empty" option enabled
Hi
Debug mode is off, even when I create a new field (not a copy) it doesn't work, and I reuploaded the file to make sure it's the good file but, no, it's not working
Debug mode is off, even when I create a new field (not a copy) it doesn't work, and I reuploaded the file to make sure it's the good file but, no, it's not working
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
- support
- Site Admin
- Posts: 6231
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Issue with mysql list with "hidden if empty" option enabled
Found what was not correct. File from archive replace to includes\classes\fieldstypes\
Works now?
Works now?
- Attachments
-
- fieldtype_items_by_query2.zip
- (2.76 KiB) Downloaded 29 times
Re: Issue with mysql list with "hidden if empty" option enabled
Perfect it works, thanks
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)