From cc7522f226c0dcc45a2bd40a4e5ed4916ce171e3 Mon Sep 17 00:00:00 2001 From: roberto Date: Mon, 4 Apr 2011 17:11:53 +0000 Subject: [PATCH] =?UTF-8?q?Tareas=20#549=20En=20las=20pantallas=20donde=20?= =?UTF-8?q?aparezca=20el=20campo=20=E2=80=9CPROCEDENCIA=E2=80=9D=20el=20va?= =?UTF-8?q?lor=20por=20defecto=20debe=20ser=20=E2=80=9CSelfor=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk@4 e2b1556b-49f8-d141-9351-52d6861a72d9 --- src/addCandidato.php | 2 +- src/functions_util.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/addCandidato.php b/src/addCandidato.php index 677af39..96ada84 100644 --- a/src/addCandidato.php +++ b/src/addCandidato.php @@ -189,7 +189,7 @@ echo ''; echo ''; echo '
'.$locale['1800'].'* : '; - $auxiliar = ''; + $auxiliar = ''; rellena_procedencias("procedencia",$auxiliar,$_POST['procedencia']); echo ''.$locale['1576']." "; diff --git a/src/functions_util.php b/src/functions_util.php index 6b084dd..d52311a 100644 --- a/src/functions_util.php +++ b/src/functions_util.php @@ -431,8 +431,9 @@ function rellena_procedencias($name, $auxiliar, $opcion){ if ($link = conectar()){ if ($resultado = consultar("select * from procedencia", $link)){ while ($row = mysql_fetch_array($resultado)) - if($opcion == $row["num"]){ + if (($opcion == $row["num"]) || ($opcion == '')) { echo ''; + $opcion = $row["num"]; }else{ echo ''; }