AnsweredAssumed Answered

Can we Override/Extend modules/Filters/clients/base/datas/model/model.js

Question asked by Jeff Bickart on Sep 10, 2015
Latest reply on Jan 9, 2019 by hats
We have a need to have a relate field to the Employee's module. However the relate field automatically adds to the filter users.status != 'Inactive'. Because this is the Employee's module we are relating we want to search instead for employee_status != 'Inactive'

The code is in  modules/Filters/clients/base/datas/model/model.js 

What we want to do is extend this .js and if the module passed into the buildSearchTermFilter function is anything but Employees, call the parent function... otherwise we can add custom filters.

Can this be done?