You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
I was trying to research this issue and remembered that in 2022, bureaucracy stopped submitting lookup field values altogether, as described in splitbrain/dokuwiki-plugin-bureaucracy#313. Since a structjoin field is just a variation of a lookup field, this issue may be related.
With some more testing, I seem to have found a workaround that may help in certain instances. While directly referencing a structjoin field in the bureaucracy form will lead to the reported error, referencing the whole schema will not.
Note that in my particular example, customerdocumentation.customer is a lookup field. Due to another issue, this field is not submitted to the target struct so it is necessary to replace it with a manually entered value. The ugly workaround looks like this.
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 structcustomer
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 thecustomerdocumentation
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:
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 newcustomerdocumentation
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.
The text was updated successfully, but these errors were encountered: