Skip to content

Update library/Centurion/Contrib/admin/forms/Filter.php#101

Open
hmanprod wants to merge 1 commit intocenturion-project:masterfrom
hmanprod:patch-1
Open

Update library/Centurion/Contrib/admin/forms/Filter.php#101
hmanprod wants to merge 1 commit intocenturion-project:masterfrom
hmanprod:patch-1

Conversation

@hmanprod
Copy link
Copy Markdown

Actually the filter functionnality doesn't work correctly on a Centurion_Controller_CRUD (Centurion_Controller AGL too i supose).
The problem appears when Centurion uses FILTER_BEHAVIOR_CONTAINS. I've the error below:
Exception Zend_Db_Statement_Exception SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Array' in 'where clause' sent in C:\wamp\www\changeshape.new\library\Zend\Db\Statement\Pdo.php at line 61
So i've make some change on this file and for now it's seems to work.
For your intention, I've notice another problem too when centurion uses FILTER_BEHAVIOR_IN. I've the error message below :
Exception Zend_Db_Statement_Exception SQLSTATE[42000]: Syntax error or access violation: 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 'IN ('2'))' at line 1 sent in C:\wamp\www\changeshape.new\library\Zend\Db\Statement\Pdo.php at line 61
The select query seems to looks like this:
SELECT fitness_workout.* FROM fitness_workout WHERE (.difficulty_id IN ('1'))
Centurion seems not to able to find the tablename.

For now i ve only propose one change for FILTER_BEHAVIOR_CONTAINS bug.

Actually the filter functionnality does work correctly on a Centurion_Controller_CRUD (Centurion_Controller AGL too i supose too).
The problem apears when Centurion use FILTER_BEHAVIOR_CONTAINS. I ve the error below:
Exception Zend_Db_Statement_Exception SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Array' in 'where clause' sent in C:\wamp\www\changeshape.new\library\Zend\Db\Statement\Pdo.php at line 61 
So i ve make some change on this file and for now it's seems to work.
For your intention, I've notice another problem too when centurion use FILTER_BEHAVIOR_IN. I've the error message below :
Exception Zend_Db_Statement_Exception SQLSTATE[42000]: Syntax error or access violation: 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 'IN ('2'))' at line 1 sent in C:\wamp\www\changeshape.new\library\Zend\Db\Statement\Pdo.php at line 61 
The select query seems to looks like this:
SELECT `fitness_workout`.* FROM `fitness_workout` WHERE (.`difficulty_id` IN ('1'))

Centurion seems not to able to find the tablename.

For now i ve only propose one change for FILTER_BEHAVIOR_CONTAINS bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant