fixed warning showing up when searching
This commit is contained in:
parent
6a51f5f87a
commit
b58297a791
@ -66,9 +66,15 @@ $offset = $limit * $page ;
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (isset($_POST['button_removefilter'])) {
|
||||||
|
$sref = '';
|
||||||
|
$snom = '';
|
||||||
|
$sal = '';
|
||||||
|
}
|
||||||
|
|
||||||
//orders creation
|
//orders creation
|
||||||
//FIXME: could go in the lib
|
//FIXME: could go in the lib
|
||||||
if ($action == 'order') {
|
if ($action == 'order' && isset($_POST['valid'])) {
|
||||||
$linecount = GETPOST('linecount', 'int');
|
$linecount = GETPOST('linecount', 'int');
|
||||||
$box = 0;
|
$box = 0;
|
||||||
unset($_POST['linecount']);
|
unset($_POST['linecount']);
|
||||||
@ -358,6 +364,8 @@ if ($resql) {
|
|||||||
'<td class="liste_titre" align="right">',
|
'<td class="liste_titre" align="right">',
|
||||||
'<input type="image" class="liste_titre" name="button_search"',
|
'<input type="image" class="liste_titre" name="button_search"',
|
||||||
'src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/search.png" alt="' . $langs->trans("Search") . '">',
|
'src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/search.png" alt="' . $langs->trans("Search") . '">',
|
||||||
|
'<input type="image" class="liste_titre" name="button_removefilter"
|
||||||
|
src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/searchclear.png" value="'.dol_escape_htmltag($langs->trans("Search")).'" title="'.dol_escape_htmltag($langs->trans("Search")).'">',
|
||||||
'</td>',
|
'</td>',
|
||||||
'</tr>';
|
'</tr>';
|
||||||
|
|
||||||
@ -482,7 +490,7 @@ if ($resql) {
|
|||||||
'</div>',
|
'</div>',
|
||||||
'<table width="100%">',
|
'<table width="100%">',
|
||||||
'<tr><td align="right">',
|
'<tr><td align="right">',
|
||||||
'<input class="butAction" type="submit" value="' . $value . '">',
|
'<input class="butAction" type="submit" name="valid" value="' . $value . '">',
|
||||||
'</td></tr></table>',
|
'</td></tr></table>',
|
||||||
'</form>';
|
'</form>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user