Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default=current user cannot be empty #21

Open
krabina opened this issue Nov 14, 2022 · 0 comments
Open

default=current user cannot be empty #21

krabina opened this issue Nov 14, 2022 · 0 comments

Comments

@krabina
Copy link

krabina commented Nov 14, 2022

I have the following simple form field:

{{{field|Erledigt von|input type=tokens|default=current user|values from namespace=Benutzer|class=form-control}}}

It is working fine with the exception that if you remove the name from the tokens field and save the form with an empty field, the current user will be set in the template, though it should be empty.

If in the same form definition I remove |default=current user everything is working as expected. A name shown as token that you remove, saving an empty field results in the template getting no value for the field.

@krabina krabina changed the title default=current user cannot be set up empty default=current user cannot be empty Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant