To clarify, this is ONLY on join attributes
My layout handles are correctly setup, I can filter the inherited columns correctly.
$collection->getSelect()->join(
array('entity_int_status' => 'catalog_product_entity_int'),
'entity_int_status.attribute_id = 80 AND entity_int_status.entity_id = main_table.product_id',
array('status' => 'entity_int_status.value')
);
That's how I've joined the status
value from catalog_product_entity_int
in my Grid. If I try filter by this column, Magento:
- On first attempt redirects to the dashboard, and if I then try view the page again
- Throws an error report, reading that the column cannot be found
I need to log out & back in again to get the page to load again (i.e forget the filters). Why are the attributes which are joined not able to be filtered?
Edit 1: Please note that this is only for filter, not sort.
$this->setSaveParametersInSession(false);
(may stop you from have to re-login). Can you add theaddColumn
code for status? Also try add the table prefix forstatus
. Also try debug the sqlMage::log($collection->getSelect())