From 0db0cd8a6a0b9bd4d3dac2c99f51cf8f1cde0162 Mon Sep 17 00:00:00 2001 From: Szymon Olewniczak Date: Thu, 7 Dec 2017 13:45:47 +0100 Subject: [PATCH] feature: hidden fields in bueraucracy form from struct fields This commit adds extra syntax which allow us to add struct fields to bureaucracy forms as hidden fields: struct_fieldhidden "products.product" "=value" This only make sense with #354 --- helper/fieldhidden.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 helper/fieldhidden.php diff --git a/helper/fieldhidden.php b/helper/fieldhidden.php new file mode 100644 index 00000000..e5886ab7 --- /dev/null +++ b/helper/fieldhidden.php @@ -0,0 +1,22 @@ +_handlePreload(); + $form->addHidden($params['name'], $this->getParam('value') . ''); + } +}