BUG 13397 " Campo "File" en dynaform tipo grilla" SOLVED
- Campo "File" en dynaform tipo grilla. - Problema: Al agregar un campo de tipo "File" en grillas como campo requerido, la validacion no se cumple. - Solucion: El problema es el siguiente: al momento de validar el campo File en grillas, no se esta definiendo el atributo "pm:required" en el tag <input />, se adiciono el atributo con el metodo "NSRequiredValue()" definido en el mismo archivo "class.xmlform.php" y se adiciona en la clase "XmlForm_Field_File", el metodo que permite agregar el atributo "pm:required", con este atributo la validacion de campos requeridos en campos File en grillas funciona correctamente.
This commit is contained in:
@@ -2894,7 +2894,7 @@ class XmlForm_Field_File extends XmlForm_Field
|
||||
$styleDisplay = "display: none;";
|
||||
}
|
||||
|
||||
$html = $html1 . "<input type=\"file\" id=\"form" . $rowId . "[" . $this->name . "]\" name=\"form" . $rowId . "[" . $this->name . "]\" value=\"" . $value . "\" class=\"module_app_input___gray_file\" style=\"" . $styleDisplay . "\"" . $mode . " />" . $html2;
|
||||
$html = $html1 . "<input type=\"file\" id=\"form" . $rowId . "[" . $this->name . "]\" name=\"form" . $rowId . "[" . $this->name . "]\" value=\"" . $value . "\" class=\"module_app_input___gray_file\" style=\"" . $styleDisplay . "\"" . $mode . " " . $this->NSRequiredValue() . " />" . $html2;
|
||||
|
||||
if (isset( $this->input ) && $this->input != null) {
|
||||
require_once ("classes/model/InputDocument.php");
|
||||
|
||||
Reference in New Issue
Block a user