Quicksearch problems revisited - ca_storage_locations.is_enabled
Once a long time ago....I was working to try to figure out why quicksearch vs normal search were not returning storage locations. After many trials with search indexing, etc I have found the problem to be that:
ca_storage_locations.is_enabled is NOT defined, so it will always fail in QuickSearchController.php
ca_storage_locations.Is_enabled IS defined.
return $o_storage_location_search->search(($ps_search == '*') ? '(ca_storage_locations.is_enabled:1)' : '('.$ps_search.') AND (ca_storage_locations.is_enabled:1)', $search_opts);
return $o_storage_location_search->search(($ps_search == '*') ? '(ca_storage_locations.Is_enabled:1)' : '('.$ps_search.') AND (ca_storage_locations.Is_enabled:1)', $search_opts);
If I change ca_storage_locations.is_enabled to ca_storage_locations.Is_enabled then it works just fine.
I do not see any place where Is_enabled is defined. /app/models/ca_storage_locations.php has it as 'is_enabled', the ca_storage_locations mysql table has it as 'is_enabled', search_index.conf has it as 'is_enabled'
Any idea? I am so close to solving this!