Skip to content

Commit b8d1414

Browse files
committed
Handle Barcode placeholders before anything else to avoid wrong delegation
Fixes issue #1268
1 parent 463d7b8 commit b8d1414

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/Services/LabelSystem/PlaceholderProviders/BarcodeProvider.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ public function replace(string $placeholder, object $label_target, array $option
114114
return '<b>IPN Barcode ERROR!</b>: '.$e->getMessage();
115115
}
116116
}
117-
118-
119-
120-
121117
return null;
122118
}
119+
120+
public static function getDefaultPriority(): int
121+
{
122+
//This provider should be checked before all others, so that nothing is delegated for part lots
123+
return 1000;
124+
}
123125
}

0 commit comments

Comments
 (0)