From e047299dfc473fe8bfecd118a6ef1d4262a2b95c Mon Sep 17 00:00:00 2001 From: Luis Fernando Saisa Lopez Date: Thu, 30 Apr 2015 15:53:59 -0400 Subject: [PATCH] PM-2254 "Designer>Designer BPMN>Input Documents..." SOLVED > Code Isuue: Designer > Designer BPMN > Input Documents: El campo .Allowed file extensions. no tiene la sintaxis correcta en el campo requerido > Solution: Se corrige el label del formulario de creacion de los input document y su nuevo valor por default es ".*". --- workflow/engine/methods/inputdocs/inputdocs_Save.php | 4 ++-- .../xmlform/cases/cases_AttachInputDocumentGeneral.xml | 8 +++++++- workflow/engine/xmlform/inputdocs/inputdocs_Options.xml | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/workflow/engine/methods/inputdocs/inputdocs_Save.php b/workflow/engine/methods/inputdocs/inputdocs_Save.php index 050c5cb0b..8bda6c71c 100755 --- a/workflow/engine/methods/inputdocs/inputdocs_Save.php +++ b/workflow/engine/methods/inputdocs/inputdocs_Save.php @@ -89,10 +89,10 @@ try { } //Validating the format of the allowed extentions - //Allowed Types has to have this format -> *.pdf, *.docx or *.* to all. + //Allowed Types has to have this format -> *.pdf, .xls, *.docx, *.* or .* to all. $allowedTypes = explode(", ", $aData['INP_DOC_TYPE_FILE']); foreach ($allowedTypes as $types => $val) { - if((preg_match('/^\*\.?[a-zA-Z0-9]{2,15}$/', $val)) || ($val == '*.*')){ + if ((preg_match("/^.*\.?[a-zA-Z0-9]{2,15}$/", $val)) || ($val == "*.*") || ($val == ".*")) { }else { $message = G::LoadTranslation( 'ID_UPLOAD_ERR_WRONG_ALLOWED_EXTENSION_FORMAT' ); G::SendMessageText( $message, "ERROR" ); diff --git a/workflow/engine/xmlform/cases/cases_AttachInputDocumentGeneral.xml b/workflow/engine/xmlform/cases/cases_AttachInputDocumentGeneral.xml index e7f40010f..9367ed7f3 100755 --- a/workflow/engine/xmlform/cases/cases_AttachInputDocumentGeneral.xml +++ b/workflow/engine/xmlform/cases/cases_AttachInputDocumentGeneral.xml @@ -71,7 +71,13 @@ var verifyInfo = function(oForm) allowedTypes = getField('fileTypes').value.split(", "); for(i=0; i