Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hmanprod
Copy link

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