aboutsummaryrefslogtreecommitdiffstats
path: root/search.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-02-13 18:36:55 +0100
committerplegall <plg@piwigo.org>2016-02-13 18:36:55 +0100
commit713bc497466a364c97c27398c0264699c4db2c9a (patch)
tree9ed7d8632b52a175f7c2c8d04debe8c3ffe3bc78 /search.php
parenta6fbaf69c71c3b39666a6323c4c6bbb7cbb98310 (diff)
feature #355, apply search by word on tags
we "simulate" a search by tag, but we still perform a "search by words" AND "search by tags", which lead to different result compared to "word on title OR file OR description OR tags"
Diffstat (limited to 'search.php')
-rw-r--r--search.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/search.php b/search.php
index 9d33c7b3c..f8f0a1949 100644
--- a/search.php
+++ b/search.php
@@ -72,6 +72,11 @@ if (isset($_POST['submit']))
'mode' => $_POST['mode'],
'fields' => $_POST['fields'],
);
+
+ if (isset($_POST['search_in_tags']))
+ {
+ $search['fields']['search_in_tags'] = true;
+ }
}
if (isset($_POST['tags']))