Compare commits
2 Commits
card/6168-
...
prod
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b01eb91493 | ||
|
|
16475ccac1 |
@@ -788,7 +788,10 @@ class TicketingSettingsController extends Controller
|
||||
'name' => 'required|string|max:100',
|
||||
'color' => 'required|string|regex:/^#[0-9a-fA-F]{6}$/',
|
||||
'description' => 'nullable|string',
|
||||
'sort_order' => 'integer|min:0',
|
||||
// unsignedSmallInteger column (0..65535): without the ceiling an
|
||||
// oversized client value overflows on INSERT as an unhandled 500.
|
||||
// Same rule #6081 put on storeStatus()/updateStatus().
|
||||
'sort_order' => 'integer|min:0|max:65535',
|
||||
]);
|
||||
|
||||
PriorityLevel::create($validated);
|
||||
@@ -806,7 +809,7 @@ class TicketingSettingsController extends Controller
|
||||
'name' => 'required|string|max:100',
|
||||
'color' => 'required|string|regex:/^#[0-9a-fA-F]{6}$/',
|
||||
'description' => 'nullable|string',
|
||||
'sort_order' => 'required|integer|min:0',
|
||||
'sort_order' => 'required|integer|min:0|max:65535',
|
||||
]);
|
||||
|
||||
$priority->update($validated);
|
||||
|
||||
Reference in New Issue
Block a user