Merge remote-tracking branch 'origin/3.4' into develop

Conflicts:
	htdocs/compta/bank/account.php
This commit is contained in:
Laurent Destailleur 2013-07-13 23:41:32 +02:00
commit 4608e07753
2 changed files with 5 additions and 3 deletions

View File

@ -326,7 +326,8 @@ if ($id > 0 || ! empty($ref))
{
$navig.= '<a href="'.$_SERVER["PHP_SELF"].'?'.$param.'&amp;page='.($page-1).'">'.img_next().'</a>';
}
$navig.='</fieldset></div>';
$navig.='</div>';
//var_dump($navig);
print '<table class="notopnoleftnoright" width="100%">';

View File

@ -73,7 +73,7 @@ if ($mode == 'search')
if ($modesearch == 'soc')
{
$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).")";
}
@ -127,7 +127,8 @@ if (GETPOST('filtre'))
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"))
{