From 049769b871215751a01df754f16d30b116bb8bf1 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 17 Jul 2003 22:46:04 +0000 Subject: [PATCH] Se hace required el sistema. --- lib/AI/Form.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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') { -- 2.43.0