Automate Action + MySQL Query = Database Error 1054
Posted: 12 Oct 2020, 07:42
I have an automate actions button for voiding invoices. I've created a Function to pull the SUM of assigned users in a "Tasks" sub entity. A MySQL Query was created to pull the value of the function. This is to check if a user has been assigned to any tasks under the parent.
In the automate actions filters, I choose the MySQL Query field for that function and have it set to include 0. The purpose is to not show the void button if a user is assigned to any tasks. If there are no assigned users, have it show the button to allow voiding.
When I add the filter mentioned above, it will cause a database error on the parents item page.
In the automate actions filters, I choose the MySQL Query field for that function and have it set to include 0. The purpose is to not show the void button if a user is assigned to any tasks. If there are no assigned users, have it show the button to allow voiding.
When I add the filter mentioned above, it will cause a database error on the parents item page.
Database Error: 1054 - Unknown column 'field_848' in 'having clause'
Query: select e.id from app_entity_48 e where e.id=10 having ((field_848=0))
Page: /index.php?module=items/info&path=48-10