Merge pull request 'Added logic in pdf controller' (#51) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Reviewed-on: #51
This commit was merged in pull request #51.
This commit is contained in:
@@ -913,6 +913,11 @@ class PdfController extends Controller
|
|||||||
$itemCharacteristicId = $request->query('item_characteristic_id');
|
$itemCharacteristicId = $request->query('item_characteristic_id');
|
||||||
$stickerId = trim($stickerId);
|
$stickerId = trim($stickerId);
|
||||||
|
|
||||||
|
// Normalize "empty" or "" to null
|
||||||
|
$plantId = ($plantId && $plantId != 'empty') ? $plantId : null;
|
||||||
|
$itemCharacteristicId = ($itemCharacteristicId && $itemCharacteristicId != 'empty') ? $itemCharacteristicId : null;
|
||||||
|
|
||||||
|
|
||||||
if ($plantId && $itemCharacteristicId)
|
if ($plantId && $itemCharacteristicId)
|
||||||
{
|
{
|
||||||
$plantId = $request->query('plant_id');
|
$plantId = $request->query('plant_id');
|
||||||
|
|||||||
Reference in New Issue
Block a user