mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 09:44:41 +02:00
Fixed problems with non-unique prototype names when using nested collection type, which prevented to create nested entries with mulitple new sub entries.
We now use a unique prototype name for every collection field. This fixes issue #219
This commit is contained in:
parent
1e998fccbb
commit
9d1cd0477a
3 changed files with 25 additions and 2 deletions
|
@ -4,11 +4,13 @@
|
|||
'deleteMessage': deleteMessage|trans,
|
||||
'prototype': form_widget(form.vars.prototype)|e('html_attr'),
|
||||
'rowsToDelete': rowsToDelete,
|
||||
'fieldPlaceholder': form.vars.prototype_name
|
||||
}) }}
|
||||
{% else %} {# If add_element is disabled/forbidden, prototype is not available #}
|
||||
{{ stimulus_controller('elements/collection_type', {
|
||||
'deleteMessage': deleteMessage|trans,
|
||||
'rowsToDelete': rowsToDelete
|
||||
'rowsToDelete': rowsToDelete,
|
||||
'fieldPlaceholder': form.vars.prototype_name
|
||||
}) }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue