Update library/Centurion/Contrib/admin/forms/Filter.php#101
Open
hmanprod wants to merge 1 commit intocenturion-project:masterfrom
Open
Update library/Centurion/Contrib/admin/forms/Filter.php#101hmanprod wants to merge 1 commit intocenturion-project:masterfrom
hmanprod wants to merge 1 commit intocenturion-project:masterfrom
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.* FROMfitness_workoutWHERE (.difficulty_idIN ('1'))Centurion seems not to able to find the tablename.
For now i ve only propose one change for FILTER_BEHAVIOR_CONTAINS bug.