mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 19:40:11 +01:00
Fixed attachment type search query assembly
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
90e06de835
commit
b91c899f75
@ -115,9 +115,8 @@ class ModelSearchSearch extends Model {
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
foreach($data['match'] as $k => $v) {
|
foreach($data['match'] as $k => $v) {
|
||||||
if($v == "@attachment_types") {
|
if($v == "@attachment_types") {
|
||||||
list($k, $v) = each($data['match']);
|
|
||||||
$i++;
|
$i++;
|
||||||
if($v == "any") {
|
if($data['match'][$i] == "any") {
|
||||||
$data['match'][$i-1] = "";
|
$data['match'][$i-1] = "";
|
||||||
$data['match'][$i] = "";
|
$data['match'][$i] = "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user