PMCORE-935
This commit is contained in:
16
database/factories/DepartmentFactory.php
Normal file
16
database/factories/DepartmentFactory.php
Normal 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
@@ -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
17
workflow/engine/src/ProcessMaker/Model/Department.php
Normal file
17
workflow/engine/src/ProcessMaker/Model/Department.php
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user