Compare commits
2 Commits
09cfa80918
...
9554e48459
| Author | SHA1 | Date | |
|---|---|---|---|
| 9554e48459 | |||
|
|
04cbf548de |
@@ -58,7 +58,7 @@ class StickerMasterController extends Controller
|
|||||||
'status_code' => 'ERROR',
|
'status_code' => 'ERROR',
|
||||||
'status_description' => 'Plant code must be between 4 and 7 digits only!',
|
'status_description' => 'Plant code must be between 4 and 7 digits only!',
|
||||||
], 400);
|
], 400);
|
||||||
} elseif (! preg_match('/^[1-9]\d{4,}$/', $plantCode)) {
|
} elseif (! preg_match('/^[1-9]\d{3,}$/', $plantCode)) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status_code' => 'ERROR',
|
'status_code' => 'ERROR',
|
||||||
'status_description' => 'Invalid plant code found!',
|
'status_description' => 'Invalid plant code found!',
|
||||||
@@ -190,7 +190,7 @@ class StickerMasterController extends Controller
|
|||||||
'status_code' => 'ERROR',
|
'status_code' => 'ERROR',
|
||||||
'status_description' => 'Plant code must be between 4 and 7 digits only!',
|
'status_description' => 'Plant code must be between 4 and 7 digits only!',
|
||||||
], 400);
|
], 400);
|
||||||
} elseif (! preg_match('/^[1-9]\d{4,}$/', $plantCode)) {
|
} elseif (! preg_match('/^[1-9]\d{3,}$/', $plantCode)) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status_code' => 'ERROR',
|
'status_code' => 'ERROR',
|
||||||
'status_description' => 'Invalid plant code found!',
|
'status_description' => 'Invalid plant code found!',
|
||||||
|
|||||||
Reference in New Issue
Block a user