Hi all,
I have some problems creating pages with the bureaucracy plugin if I use "fieldset dependencies".
Variables @@....@@ from "fieldset dependencies" block will not be substituted, others work fine.
Bug or what I'm doing wrong?
Thanks for any help and hints!
Example:
01 <form>
02 action template :template_benutzer_test ":benutzer:@@Firma@@:@@Bereich@@:@@Nachname@@ @@Vorname@@" :
03
04 fieldset "persönliche Daten"
05 textbox "Vorname"
06 textbox "Nachname"
07 select "Firma" "Firma A2|Firma B2"
08
09 fieldset "Adresse" "Firma" "Firma A2"
10 select "Bereich" "Bereich a2-1|Bereich a2-2"
11 textbox "Strasse" "=Strasse Firma A2"
12
13 fieldset "Adresse" "Firma" "Firma B2"
14 select "Bereich" "Bereich b2-1|Bereich b2-2"
15 textbox "Strasse" "=Strasse Firma B2"
16
17 thanks "Vielen Dank für Ihre Angaben!"
18
19 fieldset ""
20 submit
21 </form>
Template:
====== @@Vorname|-@@ @@Nachname|-@@ ======
Firma= @@Firma|-@@
Bereich= @@Bereich|-@@
Name= @@Vorname|-@@ @@Nachname|-@@
Strasse= @@Strasse|-@@
Form input:
Only type in "Vorname = Willi" and "Nachname = Wichtig", the other fields still default value.
Results:
1) Namespace path ("bereich" is wrong because it is the variable name and not its content):
benutzer
firma_a2
bereich <<<< "wrong because it is the variable name and not its content"
Willi Wichtig
2) created page from template ("Bereich" and "Strasse" not substituted):
Willi Wichtig
Firma= Firma A2
Bereich= - <<<<<< "Bereich" not substituted
Name= Willi Wichtig
Strasse= - <<<<<< "Strasse" not substituted