search not working correctly

edited April 2012 in Modules
At user module for example i search by mail: asd@dsa.com and i found that user but user_model.php has this property: public $filters = array('first_name', 'last_name', 'user_name'); which means that must search just by first_name, last_name or user_name. But search by all form fields.

Is this correct?

Comments

  • edited 10:22PM
    You can add it to the array or the module config
  • edited 10:22PM
    can you give me an example please?
  • edited 10:22PM
    If you want to add the email field directly to the model you can add it in that array like:

    public $filters = array('first_name', 'last_name', 'user_name', 'email');

    I was off when I mentioned the module config. The filters setting there is for extra filtering in the header, not the list view.
  • edited April 2012
    Thank you, I understand now. This is not for list view
  • edited 10:22PM
    Okay.. what's it for? Assuming you still need help, if not, glad you got it sorted.
  • edited 10:22PM
    I solve my problem. I didn't know that this property not working for list view function. Thank you.
Sign In or Register to comment.