Added logic in pdf controller
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 11s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 18s
Laravel Larastan / larastan (pull_request) Failing after 2m39s
Laravel Pint / pint (pull_request) Failing after 2m36s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 11s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 18s
Laravel Larastan / larastan (pull_request) Failing after 2m39s
Laravel Pint / pint (pull_request) Failing after 2m36s
This commit is contained in:
@@ -913,6 +913,11 @@ class PdfController extends Controller
|
||||
$itemCharacteristicId = $request->query('item_characteristic_id');
|
||||
$stickerId = trim($stickerId);
|
||||
|
||||
// Normalize "empty" or "" to null
|
||||
$plantId = ($plantId && $plantId != 'empty') ? $plantId : null;
|
||||
$itemCharacteristicId = ($itemCharacteristicId && $itemCharacteristicId != 'empty') ? $itemCharacteristicId : null;
|
||||
|
||||
|
||||
if ($plantId && $itemCharacteristicId)
|
||||
{
|
||||
$plantId = $request->query('plant_id');
|
||||
|
||||
Reference in New Issue
Block a user