Page 1 of 1

[SOLVED] Error - Field Rules

Posted: 21 Jan 2023, 19:19
by urbanus
Database Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by sort_order, name' at line 1
Query: select * from app_forms_tabs where parent_id=0 and entities_id= order by sort_order, name
Page: /index.php?module=forms_fields_rules/rules&action=get_fields_choices&entities_id=29&id=&token=9pXizU5DOI&fields_id=null
#0 includes/functions/database.php(87): mysqli_query(Object(mysqli), 'select * from a...')
#1 includes/classes/model/forms_tabs.php(59): db_query('select * from a...')
#2 includes/classes/model/forms_fields_rules.php(132): forms_tabs::get_tree('')
#3 modules/forms_fields_rules/actions/rules.php(168): forms_fields_rules::fields_by_form_tab_helper('', 'visible_fields')
#4 index.php(20): require('/home1/urbanu55...')
#5 {main}

Re: Error - Field Rules

Posted: 21 Jan 2023, 21:50
by support
Can't reproduce this issue.

Re: Error - Field Rules

Posted: 21 Jan 2023, 22:51
by urbanus
Hello Sergey ;
I already found out why the error happened, I was wanting to create a rule in a field that is read-only, that is, it does not appear in the form only in the listing.

Re: [SOLVED] Error - Field Rules

Posted: 11 Feb 2023, 04:59
by Didou12
Yes,

Same here, when no field is available, I think this error pops up.

Re: [SOLVED] Error - Field Rules

Posted: 29 Apr 2023, 18:18
by yaoying
I also ran into it, should prompt that no fields are available, instead of an error code

Re: [SOLVED] Error - Field Rules

Posted: 30 Apr 2023, 09:45
by support
Can someone reproduce this issue on personal demo https://www.rukovoditel.net/demo.php and give me the link to the demo. I will check.

Re: [SOLVED] Error - Field Rules

Posted: 30 Apr 2023, 19:52
by yaoying
Import the template Job Tracking Template
https://www.rukovoditel.net/database_te ... .php?id=29

Application Structure >> Entities List >> Stock >> View Configuration >> Display Fields Rules >> Add a new rule


Error

Code: Select all

Database Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by sort_order, name' at line 1
Query: select * from app_forms_tabs where parent_id=0 and entities_id= order by sort_order, name
Page: /3.3/index.php?module=forms_fields_rules/rules&action=get_fields_choices&entities_id=27&id=&demo_id=2146&token=AE1eR81sKd&fields_id=null
#0 includes/functions/database.php(87): mysqli_query()
#1 includes/classes/model/forms_tabs.php(59): db_query()
#2 includes/classes/model/forms_fields_rules.php(132): forms_tabs::get_tree()
#3 modules/forms_fields_rules/actions/rules.php(168): forms_fields_rules::fields_by_form_tab_helper()
#4 index.php(20): require('/home/admin/web...')
#5 {main}

https://pdemo.rukovoditel.pro/3.3/index ... mo_id=2146

Re: [SOLVED] Error - Field Rules

Posted: 30 Apr 2023, 21:00
by support
Found issue. It happens because no fields available to setup rules.
File from archive replace to modules\forms_fields_rules\actions\
Now there is no error.

Re: [SOLVED] Error - Field Rules

Posted: 01 May 2023, 06:56
by yaoying
Thank you, the error has been resolved.

Re: [SOLVED] Error - Field Rules

Posted: 01 May 2023, 09:27
by Didou12
Thank you Sergey