Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Object bricks error while filter an export in object grid #190

@brusch

Description

@brusch

I have some object bricks ( Name: MOTClothing , Field name: occasion ) which are linked with object class (Product class - MOTProduct ). There is a export option in object (product) grid. The grid contains object bricks - occasion also. If we CSV export products it's works. But if I try to filter with object bricks - occasion and CSV export then I will get fatal error like,

Fatal error: Uncaught exception 'Zend_Db_Statement_Mysqli_Exception' with message 'Mysqli prepare error: Unknown column 'MOTClothing.occasion' in 'where clause'' in /home/ecomweb1/connect.com/pimcore/pimcore/lib/Zend/Db/Statement/Mysqli.php:77 Stack trace: #0 /home/ecomweb1/connect.com/pimcore/pimcore/lib/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('SELECT object_l...') #1 /home/ecomweb1/connect.com/pimcore/pimcore/lib/Zend/Db/Adapter/Mysqli.php(388): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT object_l...') #2 /home/ecomweb1/connect.com/pimcore/pimcore/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Adapter_Mysqli->prepare('SELECT object_l...') #3 /home/ecomweb1/connect.com/pimcore/pimcore/lib/Zend/Db/Adapter/Abstract.php(737): Zend_Db_Adapter_Abstract->query('SELECT object_l...', Array) #4 [internal function]: Zend_Db_Adapter_Abstract->fetchAll('SELECT object_l...', Array) #5 /home/ecomweb1/connect.com/pimcore/pimcore/lib/Pimcore/Resource/Wrapper.php(230): call_user_func_arra in /home/ecomweb1/connect.com/pimcore/pimcore/lib/Zend/Db/Statement/Mysqli.php on line 77

I tried with some other object bricks and different server but still i got error.
Its seems like the filter passing wrong element.

Other filter and CSV export working fine, only problem with object bricks.

image

image

image

image

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions