diff --git a/src/Cartridge.php b/src/Cartridge.php index 430e99738df..01bf9c1e5e7 100644 --- a/src/Cartridge.php +++ b/src/Cartridge.php @@ -953,6 +953,10 @@ public static function showAddForm(CartridgeItem $cartitem) return false; } if ($ID > 0) { + $twig_params = [ + 'add_label' => __('Add cartridges'), + 'cartridgeitems_id' => $ID, + ]; // language=Twig echo TemplateRenderer::getInstance()->renderFromStringTemplate(<<{{ add_label }} + {% endset %} {{ fields.htmlField('', btn, null, { @@ -976,7 +981,7 @@ public static function showAddForm(CartridgeItem $cartitem) -TWIG, ['add_label' => __('Add cartridges')]); +TWIG, $twig_params); } }