Skip to content
Permalink
Browse files

- active search filter but empty string in batch manager does not cha…

…nge the results

- if the quick search engine drops a searched term, indicate it in the admin batch manager

git-svn-id: http://piwigo.org/svn/trunk@29600 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information...
modus75 committed Sep 17, 2014
1 parent dd486de commit 0719b52874063cc4e757ddc33e0034253121759c
Showing with 16 additions and 1 deletion.
  1. +6 −1 admin/batch_manager.php
  2. +10 −0 admin/themes/default/template/batch_manager_global.tpl
@@ -507,10 +507,15 @@
$filter_sets[] = query2array($query, null, 'id');
}
if (isset($_SESSION['bulk_manager_filter']['search']))
if (isset($_SESSION['bulk_manager_filter']['search']) &&
strlen($_SESSION['bulk_manager_filter']['search']['q']))
{
include_once( PHPWG_ROOT_PATH .'include/functions_search.inc.php' );
$res = get_quick_search_results_no_cache($_SESSION['bulk_manager_filter']['search']['q'], array('permissions'=>false));
if (!empty($res['items']) && !empty($res['qs']['unmatched_terms']))
{
$template->assign('no_search_results', $res['qs']['unmatched_terms']);
}
$filter_sets[] = $res['items'];
}
@@ -417,6 +417,16 @@ var sliders = {
<input name="q" size=40 value="{$filter.search.q|stripslashes|htmlspecialchars}">
{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
<a href="admin/popuphelp.php?page=quick_search" onclick="popuphelp(this.href);return false;" title="{'Help'|@translate}"><span class="icon-help-circled"></span></a>
{if (isset($no_search_results))}
<div>{'No results for'|@translate} :
<em><strong>
{foreach $no_search_results as $res}
{if !$res@first} &mdash; {/if}
{$res}
{/foreach}
</strong></em>
</div>
{/if}
</li>

<li id="filter_filesize" {if !isset($filter.filesize)}style="display:none"{/if}>

0 comments on commit 0719b52

Please sign in to comment.
You can’t perform that action at this time.