Commit 389751e57a254d017dd7478f0727f5d93e90130c

Authored by Neil Blakey-Milner
1 parent 73638432

Catch up changes to phraseSplit - an array of words was treated as a

string.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5298 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 5 additions and 1 deletions
lib/browse/Criteria.inc
@@ -611,7 +611,11 @@ class SearchableTextCriterion extends BrowseCriterion { @@ -611,7 +611,11 @@ class SearchableTextCriterion extends BrowseCriterion {
611 $q_set = KTUtil::phraseSplit($aRequest[$this->getWidgetBase()]); 611 $q_set = KTUtil::phraseSplit($aRequest[$this->getWidgetBase()]);
612 $temp = $q_set; 612 $temp = $q_set;
613 foreach ($temp as $k => $v) { 613 foreach ($temp as $k => $v) {
614 - $q_set[$k] = sprintf('+"%s"', $v); 614 + $t = array();
  615 + foreach ($v as $part) {
  616 + $t[] = sprintf('+"%s"', $part);
  617 + }
  618 + $q_set[$k] = join(' ', $t);
615 } 619 }
616 $p[1] = implode(' ',$q_set); 620 $p[1] = implode(' ',$q_set);
617 } else { 621 } else {