aboutsummaryrefslogtreecommitdiff
path: root/templates/income/create.html
diff options
context:
space:
mode:
authorJoris2025-02-28 19:06:20 +0100
committerJoris2025-02-28 19:06:33 +0100
commitbf26a9a7d145590e498e6057db27cee2ad162445 (patch)
tree4c5e7b245beef013a9826fe5e426998380c941d7 /templates/income/create.html
parent11e36a8df9655fc6fc5500846e9252e8d2d12873 (diff)
Solidify string equality in templatesmain
"" ~ was missing when updating a payment. Add it everywhere.
Diffstat (limited to 'templates/income/create.html')
-rw-r--r--templates/income/create.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/income/create.html b/templates/income/create.html
index 2f57250..6ea1fb0 100644
--- a/templates/income/create.html
+++ b/templates/income/create.html
@@ -49,7 +49,7 @@
{% for user in users %}
<option
value="{{ user.id }}"
- {% if ("" ~ user.id) == ("" ~ user_id) %} selected {% endif %}
+ {% if "" ~ user.id == "" ~ user_id %} selected {% endif %}
>
{{ user.name }}
</option>
@@ -65,7 +65,7 @@
{% for month in months %}
<option
value="{{ loop.index }}"
- {% if "" ~ loop.index == month_index %}
+ {% if "" ~ loop.index == "" ~ month_index %}
selected
{% endif %}
>