PMCORE-935

This commit is contained in:
Paula.Quispe
2022-05-04 13:08:12 -04:00
parent d93e0040a2
commit 95ee55739d
5 changed files with 625 additions and 86 deletions

View File

@@ -0,0 +1,16 @@
<?php
use Faker\Generator as Faker;
$factory->define(\ProcessMaker\Model\Department::class, function (Faker $faker) {
return [
'DEP_UID' => G::generateUniqueID(),
'DEP_TITLE' => $faker->sentence(2),
'DEP_PARENT' => '',
'DEP_MANAGER' => '',
'DEP_LOCATION' => 0,
'DEP_STATUS' => 'ACTIVE',
'DEP_REF_CODE' => '',
'DEP_LDAP_DN' => '',
];
});

File diff suppressed because it is too large Load Diff

View File

@@ -3793,6 +3793,9 @@ class Cases
public function uploadFiles($userUid, $appUid, $varName, $inpDocUid = -1, $appDocUid = null, $delegationIndex = null)
{
$response = [];
// Review the appUid
Validator::appUid($appUid, '$appUid');
if (isset($_FILES["form"]["name"]) && count($_FILES["form"]["name"]) > 0) {
// Get the delIndex related to the case
$cases = new ClassesCases();

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,17 @@
<?php
namespace ProcessMaker\Model;
use Illuminate\Database\Eloquent\Model;
/**
* Class Department
* @package ProcessMaker\Model
*/
class Department extends Model
{
// Set our table name
protected $table = 'DEPARTMENT';
// We do not store timestamps
public $timestamps = false;
}