Description
Issue Description
I'm sorry for the convoluted title. This error actually appears when using bureaucracy but only when the plugins struct and structjoin are also used. Since neither structjoin nor bureaucracy have received any updates as of late, I assume that a change in the struct plugin must be responsible for the issue I will now try to describe.
I'll start by describing my setup. I have one struct called customer
consisting of two fields, the customer number and the customer name. The idea of this struct is to simply be available for other structs as a reference. No documents are linked to this struct directly.
I have another struct called customerdocumentation
, referencing the struct customer
and adding a couple more fields. This struct is tied to documents in a certain namespace.
I need to be able to reference both the customer name as well as the customer number from the customer
struct in the customerdocumentation
struct. Since struct by default only supports a single lookup field, I'm using the structjoin plugin that offers the flexibility to reference this second field.
This is my bureaucracy form:
<form>
action template tmpl:customerdoc internal:clients:@@customerdocumentation.customer@@
struct_field customerdocumentation.customer
struct_field customerdocumentation.customerno
struct_field customerdocumentation.customertype
submit "Neue Kundendokumentation erstellen"
</form>
The struct_field customerdocumentation.customer
is automatically populated and presents itself as a drop-down list. From here I can select the customer. The content of this field will be provided to the template.
The struct_field customerdocumentation.customertype
is a multi-value struct field and is also correctly populated, I can choose the needed values.
Last but not least, the struct_field customerdocumentation.customerno
is the mentioned second lookup field which was defined using the structjoin plugin.
Since I started working with these plugins, the customerno
field was never populated but instead was simply shown as a non-editable label named customerno. Nevertheless, the value was always correctly handed over to the new customerdocumentation
page and correctly stored in the respective struct.
This is no longer the case. When I submit the form, I'm getting the error "Customer number is required".
I can't say for sure which update exactly broke this behavior. As far as I can see, the last time it worked was in August last year. I believe I updated DokuWiki to Jack Jackrum after that, as well as all the plugins. I haven't used the form until today which is why I haven't reported it earlier.
Please let me know if you believe this bug report is in the wrong repository. Also, I'm happy to try and help as much as I can in resolving this issue.