diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2021-07-26 06:54:02 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2021-07-26 06:54:02 +0000 |
| commit | 5d8f76ed079a9cb76c85c66b09fe8e4a89273314 (patch) | |
| tree | f6fa4ec5d0b521ed339843f07bde2495614caf71 /views/mods | |
| parent | 526defff41463501c3f8fc03525e8c38aaea0638 (diff) | |
- Leere Auswahl bei Bestellvariablen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7924 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_ordervars/order_view_sidebar.phtml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/views/mods/mod_ordervars/order_view_sidebar.phtml b/views/mods/mod_ordervars/order_view_sidebar.phtml index 6b8b873..e4c2eb6 100644 --- a/views/mods/mod_ordervars/order_view_sidebar.phtml +++ b/views/mods/mod_ordervars/order_view_sidebar.phtml @@ -8,11 +8,17 @@ <?php echo wpsg_drawForm_AdminboxStart(__('Bestellvariablen', 'wpsg')); ?>
- <?php foreach ($this->view['wpsg_mod_ordervars']['data'] as $ov_id => $ov) { ?>
-
+ <?php foreach ($this->view['wpsg_mod_ordervars']['data'] as $ov_id => $ov) {
+
+ $value = $this->callMod('wpsg_mod_ordervars', 'getValueByIdAndOrder', array($ov_id, $_REQUEST['edit_id']));
+
+ if ($ov['typ'] == '1' && $value === 'not_set') $value = __('Keine Angabe', 'wpsg');
+
+ ?>
+
<?php echo wpsg_drawForm_Text(
$this->callMod('wpsg_mod_ordervars', 'getNameById', array($ov['id'])),
- $this->callMod('wpsg_mod_ordervars', 'getValueByIdAndOrder', array($ov_id, $_REQUEST['edit_id'])),
+ $value,
'wpsg_ordervar_'.$ov_id
); ?>
|
