splitbrain / dokuwiki-plugin-bureaucracy

Create forms and generate pages or emails from them
http://www.dokuwiki.org/plugin:bureaucracy
GNU General Public License v2.0
43 stars 46 forks source link

Can no longer use lookup field of struct_schema as page name #324

Open vic-t opened 1 year ago

vic-t commented 1 year ago

I upgraded from Hogfather to Jack Jackrum, upgrading all used plugins in the process. Now, it seems no longer possible to create a new page using bureaucracy and assigning a field of the struct schema as the page name. The following code shows the error "Page clients already exists" when pressing the submit button.

<form>
action template tmpl:customerdoc internal:clients:@@customerdocumentation.customer@@
struct_schema "customerdocumentation" !
submit "Neue Kundendokumentation erstellen"
</form>

image

As you can see, my code is basically just a variation of the example provided in the official Wiki:

<form>
Action template templates:product destination:@@products.product@@
textbox name @
struct_schema "products" !
submit "Create new product"
</form>

I don't seem to have any issues with the struct_schema itself, everything else works as expected.

vic-t commented 1 year ago

In case it matters, the field "customer" in the schema "customerdocumentation" is a lookup field to "customer.fullname". But as mentioned, the lookup works fine within the field list.

vic-t commented 1 year ago

Further testing confirmed: If the reference field in @@schema.field@@ is a field of type lookup, then it doesn't work anymore.

mtkirchner commented 11 months ago

I seem to have the same problem. A lookup field is part of the name of the page. This will now stay empty. In your case this might lead to trying to replace the ns:start page,

My version is Release 2022-07-31a "Igor" with 2022-01-24 Bureaucracy Plugin.

Might be dup of #313

armandostyl commented 2 months ago

+1. The bug is severe.