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

This commit is contained in:
dhanabalan
2025-12-23 11:49:01 +05:30
parent 9e2ec1bc8b
commit 560619beb5

View File

@@ -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');