I try to filter records on Accounts for my custom entity "Contract" in the relationship panel "contracts" so I defined:
custom/Espo/Custom/SelectManagers/Contract.php
I'm able to filter the related records by accessing /api/v1/Account/{entityId}/contracts?primaryFilter=active
Unfortunately the "selectPrimaryFilterName" seems to not having any effect:
custom/Espo/Custom/Resources/metadata/clientDefs/Account.json
I cleaned up cache on the server and in my browser but still see browser requests setting an empty filter
Do I miss anything? Is selectPrimaryFilterName the correct property to set a filter in the relationship panel?
Thanks
custom/Espo/Custom/SelectManagers/Contract.php
Code:
<?php
namespace Espo\Custom\SelectManagers;
class Contract extends \Espo\Core\SelectManagers\Base
{
protected function filterActive(&$result)
{
$result['whereClause'][] = array(
'status' => ['active']
);
}
}
?>
Unfortunately the "selectPrimaryFilterName" seems to not having any effect:
custom/Espo/Custom/Resources/metadata/clientDefs/Account.json
Code:
{
"relationshipPanels": {
"contracts": {
"selectPrimaryFilterName": "active"
}
}
}
Code:
primaryFilter=
Thanks

Comment