Merge remote-tracking branch 'origin/3.4' into develop
Conflicts: htdocs/compta/bank/account.php
This commit is contained in:
commit
4608e07753
@ -326,7 +326,8 @@ if ($id > 0 || ! empty($ref))
|
|||||||
{
|
{
|
||||||
$navig.= '<a href="'.$_SERVER["PHP_SELF"].'?'.$param.'&page='.($page-1).'">'.img_next().'</a>';
|
$navig.= '<a href="'.$_SERVER["PHP_SELF"].'?'.$param.'&page='.($page-1).'">'.img_next().'</a>';
|
||||||
}
|
}
|
||||||
$navig.='</fieldset></div>';
|
$navig.='</div>';
|
||||||
|
|
||||||
//var_dump($navig);
|
//var_dump($navig);
|
||||||
|
|
||||||
print '<table class="notopnoleftnoright" width="100%">';
|
print '<table class="notopnoleftnoright" width="100%">';
|
||||||
|
|||||||
@ -73,7 +73,7 @@ if ($mode == 'search')
|
|||||||
if ($modesearch == 'soc')
|
if ($modesearch == 'soc')
|
||||||
{
|
{
|
||||||
$sql = "SELECT s.rowid FROM ".MAIN_DB_PREFIX."societe as s ";
|
$sql = "SELECT s.rowid FROM ".MAIN_DB_PREFIX."societe as s ";
|
||||||
$sql.= " WHERE s.nom LIKE '%".$db->escape(strtolower($socname))."%'";
|
$sql.= " WHERE s.nom LIKE '%".$db->escape($socname)."%'";
|
||||||
$sql.= " AND s.entity IN (".getEntity('societe', 1).")";
|
$sql.= " AND s.entity IN (".getEntity('societe', 1).")";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,7 +127,8 @@ if (GETPOST('filtre'))
|
|||||||
|
|
||||||
if (GETPOST("search_ref"))
|
if (GETPOST("search_ref"))
|
||||||
{
|
{
|
||||||
$sql .= " AND fac.rowid = ".$db->escape(GETPOST("search_ref"));
|
if (is_numeric(GETPOST("search_ref"))) $sql .= " AND (fac.rowid = ".GETPOST("search_ref",'int')." OR fac.ref = '".$db->escape(GETPOST("search_ref"))."')"; // For backward compatibility
|
||||||
|
else $sql .= " AND fac.ref LIKE '%".$db->escape(GETPOST("search_ref"))."%'";
|
||||||
}
|
}
|
||||||
if (GETPOST("search_ref_supplier"))
|
if (GETPOST("search_ref_supplier"))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user