Alexandre Julliard : Make the staged patchset a URL in the edit form.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 30 07:46:46 CST 2015


Module: bugzilla
Branch: master
Commit: d04fe4e66f9df0098ae8291e6c94c8c1f3c42b6d
URL:    http://source.winehq.org/git/bugzilla.git/?a=commit;h=d04fe4e66f9df0098ae8291e6c94c8c1f3c42b6d

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Nov 30 19:19:06 2015 +0900

Make the staged patchset a URL in the edit form.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 template/en/default/bug/edit.html.tmpl | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index f99e521..6738394 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -912,8 +912,14 @@
                                      desc_url = "//source.winehq.org/git/wine.git/commit/${bug.cf_fixedby_sha1sum}"
                                      editable = bug.check_can_change_field(field.name, 0, 1)
                                      value_span = 2 %]
+      [% ELSIF field.name == 'cf_staged_patchset' && bug.${field.name} && is_safe_url("${bug.cf_staged_patchset}") %]
+      [% PROCESS bug/field.html.tmpl value = bug.${field.name}
+                                     desc_url = "${bug.cf_staged_patchset}"
+                                     editable = bug.check_can_change_field(field.name, 0, 1)
+                                     value_span = 2 %]
       [% ELSE %]
       [% PROCESS bug/field.html.tmpl value = bug.${field.name}
+                                     desc_url = ""
                                      editable = bug.check_can_change_field(field.name, 0, 1)
                                      value_span = 2 %]
       [% END %]




More information about the wine-cvs mailing list