Merge pull request 'Added notification in bulk sticker' (#1279) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #1279
This commit was merged in pull request #1279.
This commit is contained in:
2026-10-20 05:39:56 +00:00

View File

@@ -1122,14 +1122,14 @@ class BulkStickerPrinting extends Page implements HasForms
} }
} }
if ( $selectedMachineId = trim((string) $machineId);
$matchedMachineId === null || $mappedMachineId = trim((string) $matchedMachineId);
trim((string) $matchedMachineId) !== trim((string) $machineId)
) { if ($mappedMachineId === '' || $mappedMachineId !== $selectedMachineId) {
Notification::make() Notification::make()
->danger() ->danger()
->title('Machine Mapping Mismatch') ->title('Machine Mapping Mismatch')
->body("Selected machine '{$machineId}' does not match the machine mapped to the selected sticker.") ->body("Selected machine '{$selectedMachineId}' does not match the mapped machine '{$mappedMachineId}'.")
->send(); ->send();
return; return;