From: Leandro Lucarella Date: Thu, 17 Jul 2003 22:46:04 +0000 (+0000) Subject: Se hace required el sistema. X-Git-Tag: svn_import~51 X-Git-Url: https://git.llucax.com/mecon/ai.git/commitdiff_plain/049769b871215751a01df754f16d30b116bb8bf1 Se hace required el sistema. --- diff --git a/lib/AI/Form.php b/lib/AI/Form.php index 75be294..9cdb0a9 100644 --- a/lib/AI/Form.php +++ b/lib/AI/Form.php @@ -81,8 +81,10 @@ class AI_Form extends MECON_HTML_QuickForm { // Elementos. if ($tipo == 'sistema') { require_once 'SAMURAI/Sistema.php'; - $sistemas = SAMURAI_Sistema::getArraySistemas(AI_DB::connect('../conf/DB.ini')); + $sistemas = array('' => '--') + + SAMURAI_Sistema::getArraySistemas(AI_DB::connect('../conf/DB.ini')); $fId =& $this->addElement('select', $tipo, 'Sistema', $sistemas); + $this->addRule($tipo, 'Debe ingresar un sistema.', 'required'); } if ($accion & (AI_BAJA | AI_MODIF)) { if ($tipo == 'sistema') {