From ed1fe6ec72a9eacb28d04e1a4ae07c9cc724ccfd Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 27 Dec 2009 09:22:00 +0000 Subject: [PATCH] Fix: bad focus --- htdocs/comm/addpropal.php | 2 +- htdocs/core/templates/login.tpl | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/htdocs/comm/addpropal.php b/htdocs/comm/addpropal.php index ec9f41ba3b1..1cb4f148fea 100644 --- a/htdocs/comm/addpropal.php +++ b/htdocs/comm/addpropal.php @@ -84,7 +84,7 @@ if ($_GET["action"] == 'create') // Si numero deja pris (ne devrait pas arriver), on incremente par .num+1 $sql = "SELECT count(*) as nb"; $sql.= " FROM ".MAIN_DB_PREFIX."propal"; - $sql.= " WHERE ref like '$numpr%'"; + $sql.= " WHERE ref LIKE '$numpr%'"; $sql.= " AND entity = ".$conf->entity; $resql=$db->query($sql); if ($resql) diff --git a/htdocs/core/templates/login.tpl b/htdocs/core/templates/login.tpl index 877bc4baf66..2b275325484 100644 --- a/htdocs/core/templates/login.tpl +++ b/htdocs/core/templates/login.tpl @@ -50,11 +50,9 @@ {if $main_html_header} @@ -64,7 +62,7 @@ function donnefocus(element) { - +