From 3a9d23e05b4d1f3ebc0dc22203b77ef507dfa9ea Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 16 2017 10:00:35 +0000 Subject: Always include a blank priority field This will make an empty priority row in the html which is then used as template for when adding another row or the default priorities Fixes https://pagure.io/pagure/issue/1917 Fixes https://pagure.io/pagure/issue/1915 --- diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html index 2fa5df0..2e58bf3 100644 --- a/pagure/templates/settings.html +++ b/pagure/templates/settings.html @@ -609,7 +609,7 @@
- {% for priority in ((repo.priorities or []) | sort) %} + {% for priority in ((repo.priorities or [""]) | sort) %}