Merged in jennydmz/processmaker/BUG-14990 (pull request #770)
BUG-14990 - NEW FEATURE, permitir especificar extensiones para los inputdocs.
This commit is contained in:
@@ -5346,12 +5346,12 @@ class G
|
||||
foreach ($allowedTypes as $types => $val) {
|
||||
if((preg_match('/^\*\.?[a-z]{2,8}$/', $val)) || ($val == '*.*')){
|
||||
$allowedDocTypes = substr($val, 2);
|
||||
if(($dtype[count($dtype) -1]) != $allowedDocTypes){
|
||||
$flag = 1;
|
||||
if(($dtype[count($dtype) -1]) == $allowedDocTypes || $allowedDocTypes == '*'){
|
||||
$res->status = true;
|
||||
return $res;
|
||||
break;
|
||||
} else {
|
||||
$res->status = true;
|
||||
return $res;
|
||||
break;
|
||||
$flag = 1;
|
||||
}
|
||||
} else {
|
||||
$res->status = false;
|
||||
|
||||
Reference in New Issue
Block a user