Commit fd2fbbec authored by David Lesieur's avatar David Lesieur

Fixed search arguments sometimes being messed-up when parsed (depending on the...

Fixed search arguments sometimes being messed-up when parsed (depending on the order they were processed).
parent aebd9ea2
......@@ -48,7 +48,7 @@ function _cck_facets_quoted_query_insert($keys, $option, $value = '') {
// Based on search_query_insert, but keys terminate on a double-quote followed
// by a space rather than a single space.
if (search_query_extract($keys, $option)) {
$keys = trim(preg_replace('/(^| )'. $option .':(.*?)(" |$)/i', '', $keys));
$keys = trim(preg_replace('/(^| )'. $option .':(.*?)(" |$)/i', ' ', $keys));
}
if ($value != '') {
$keys .= ' '. $option .':'. $value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment