I have the following issue with
Say I have defined a
customer_id attribute in
ngRestAttributeTypes() as follows :
'customer_id' => [ 'selectModel', 'modelClass' => Customer::className(), 'valueField' => 'id', 'labelField' => 'name', 'where'=> ['is_active'=>1],
All’s working fine. The customer name is displayed properly in the list. I have a nice dropdown list in the add/update forms with active only customers.
The problem occurs when I turned one old customer to inactive. The dropdown lists are well rendered ignoring the inactive entry but my list is showing an id instead of the name in the Customer column for entries using the inactive one.
I am not sure if this is an expected behavior or not. But for me I am expecting that inactive entires won’t appear in the dropdown lists but should be rendered properly in the list page.