From 2f092e8dc328ccf8db4d4ebd4ee4849df9cd2282 Mon Sep 17 00:00:00 2001 From: Luis Fernando Saisa Lopez Date: Tue, 18 Aug 2015 12:19:41 -0400 Subject: [PATCH] PM-3248 "Error cuando no se tiene espacio..." SOLVED --- gulliver/system/class.g.php | 2 +- .../engine/xmlform/cases/cases_AttachInputDocumentGeneral.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index a9dbb3161..154473d50 100644 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -5436,7 +5436,7 @@ class G { // Initialize variables $res = new stdclass(); - $allowedTypes = array_map('G::getRealExtension', explode(', ', $InpDocAllowedFiles)); + $allowedTypes = array_map('G::getRealExtension', explode(',', $InpDocAllowedFiles)); // If required extension is *.* don't validate if (in_array('*', $allowedTypes)) { diff --git a/workflow/engine/xmlform/cases/cases_AttachInputDocumentGeneral.xml b/workflow/engine/xmlform/cases/cases_AttachInputDocumentGeneral.xml index 9367ed7f3..c67ac3df0 100755 --- a/workflow/engine/xmlform/cases/cases_AttachInputDocumentGeneral.xml +++ b/workflow/engine/xmlform/cases/cases_AttachInputDocumentGeneral.xml @@ -68,7 +68,7 @@ var verifyInfo = function(oForm) docType = oAux.value.split("."); docType = docType[docType.length - 1]; - allowedTypes = getField('fileTypes').value.split(", "); + allowedTypes = getField('fileTypes').value.split(","); for(i=0; i