Ignore:
Timestamp:
Jun 17, 2014, 1:11:44 PM (10 years ago)
Author:
plg
Message:

feature 3093: search form, ability to select the list of properties on which
the search terms applies.

feature 3094: minor redesign on search form.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_search.inc.php

    r28587 r28709  
    8686  if (isset($search['fields']['allwords']))
    8787  {
    88     $fields = array('file', 'name', 'comment', 'author');
     88    $fields = array('file', 'name', 'comment');
     89
     90    if (isset($search['fields']['allwords']['fields']) and count($search['fields']['allwords']['fields']) > 0)
     91    {
     92      $fields = array_intersect($fields, $search['fields']['allwords']['fields']);
     93    }
     94   
    8995    // in the OR mode, request bust be :
    9096    // ((field1 LIKE '%word1%' OR field2 LIKE '%word1%')
Note: See TracChangeset for help on using the changeset viewer.