backport
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Fri, 7 Jan 2005 08:25:52 +0000 (08:25 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:12 +0000 (23:27 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.3--patch-24
   closes #250

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-226

htdocs/advanced_search.php
templates/search.adv.links.tpl

index 7242559..eb4f789 100644 (file)
@@ -133,14 +133,17 @@ if (!Env::has('rechercher')) {
 
     $url_ext = Array(
         'mod_date_sort' => Env::has('mod_date_sort'),
-        'rechercher'    => true,
         'with_soundex'  => $with_soundex
     );
 
-    $page->assign('offset',   $offset->value);
-    $page->assign('offsets',  range(0, $nbpages));
-    $page->assign('url_args', $fields->get_url($url_ext));
-    $page->assign('perpage',  $globals->search->per_page);
+    $url_short = $fields->get_url($url_ext);
+    $url_args  = $url_short . '&amp;rechercher=1';
+
+    $page->assign('offset',    $offset->value);
+    $page->assign('offsets',   range(0, $nbpages));
+    $page->assign('url_short', $url_short);
+    $page->assign('url_args',  $url_args);
+    $page->assign('perpage',   $globals->search->per_page);
     
     if (empty($nb_tot)) {
         form_prepare();
index 978c7a4..cc72cdc 100644 (file)
@@ -28,7 +28,7 @@
   </li>
   {/if}
 
-  <li><strong><a href="{$smarty.server.PHP_SELF}?{$url_args}">Modifier</a>
+  <li><strong><a href="{$smarty.server.PHP_SELF}?{$url_short}">Modifier</a>
   </strong> ta recherche
   </li>