]> git.ipfire.org Git - ipfire.org.git/commitdiff
people: Fix "None" showing when street is empty
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 May 2019 16:48:34 +0000 (17:48 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 May 2019 16:48:34 +0000 (17:48 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/people/user-edit.html

index d006d824bfcbb1cd44d6ab2a6242fe74ad6d76a9..40f6282439ddaf0a16ac229ab46c86b25c8861c9 100644 (file)
@@ -28,7 +28,7 @@
                        <label>{{ _("Address") }}</label>
 
                        <textarea type="text" class="form-control" name="street" rows="3"
-                               placeholder="{{ _("Address") }}">{{ account.street }}</textarea>
+                               placeholder="{{ _("Address") }}">{{ account.street or "" }}</textarea>
                </div>
 
                <div class="form-row mb-3">