Skip to content

Commit 5331114

Browse files
author
dante
committed
Remove statuses from models
1 parent 72d8ac7 commit 5331114

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

‎ProcessMaker/Models/Process.php‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ class Process extends Model
2626

2727
use HasBinaryUuid;
2828

29-
/**
30-
* Statuses:
31-
*/
32-
const STATUS_ACTIVE = 'ACTIVE';
33-
const STATUS_INACTIVE = 'INACTIVE';
34-
3529
public $incrementing = false;
3630

3731
/**
@@ -94,7 +88,7 @@ public static function getRules()
9488
return [
9589
'name' => 'required',
9690
'description' => 'required',
97-
'status' => 'in:' . self::STATUS_ACTIVE . ',' . self::STATUS_INACTIVE,
91+
'status' => 'in:ACTIVE,INACTIVE',
9892
'process_category_uuid' => 'nullable|exists:process_categories,uuid',
9993
'user_uuid' => 'exists:users,uuid',
10094
];

‎ProcessMaker/Models/ProcessVersion.php‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ class ProcessVersion extends Model
2222
{
2323
use HasBinaryUuid;
2424

25-
/**
26-
* Statuses:
27-
*/
28-
const STATUS_ACTIVE = 'ACTIVE';
29-
const STATUS_INACTIVE = 'INACTIVE';
30-
3125
public $incrementing = false;
3226

3327
/**

0 commit comments

Comments
 (0)