summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-04-28 16:30:33 +0200
committerDavid Lawrence <dkl@mozilla.com>2014-04-28 16:30:33 +0200
commitc4da32d7639e12f7c9e07f95f093cadca8b23b42 (patch)
tree72d3e827c58ab5236680aebb84938ada06c0fd43 /template/en/default/bug
parent96ff287433595d8fed8791af1ed0f6e382b3f4a9 (diff)
downloadbugzilla-c4da32d7639e12f7c9e07f95f093cadca8b23b42.tar.gz
bugzilla-c4da32d7639e12f7c9e07f95f093cadca8b23b42.tar.xz
Bug 963793 - fix to have user story field available on bug creation
r=glob
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/create/create.html.tmpl28
1 files changed, 3 insertions, 25 deletions
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index d1de42eb9..d41dc9d35 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -647,11 +647,8 @@ TUI_hide_default('attachment_text_field');
[% FOREACH field = Bugzilla.active_custom_fields(product=>product) %]
[% NEXT IF field.type == constants.FIELD_TYPE_EXTENSION %]
[% NEXT UNLESS field.enter_bug %]
- [%# crash-signature gets custom handling %]
- [% IF field.name == 'cf_crash_signature' %]
- [% show_crash_signature = 1 %]
- [% NEXT %]
- [% END %]
+ [% Hook.process('custom_field', 'bug/create/create.html.tmpl') %]
+ [% NEXT IF field.hidden %]
[% SET value = ${field.name}.defined ? ${field.name} : "" %]
<tr [% 'class="expert_fields"' IF !field.is_mandatory %]>
[% INCLUDE bug/field.html.tmpl
@@ -661,26 +658,7 @@ TUI_hide_default('attachment_text_field');
[% END %]
</tbody>
-[%# crash-signature handling %]
-[% IF show_crash_signature %]
-<tbody class="expert_fields">
- <tr>
- <th id="field_label_cf_crash_signature" class="field_label">
- <label for="cf_crash_signature"> Crash Signature: </label>
- </th>
- <td colspan="3">
- <span id="cf_crash_signature_container">
- <span id="cf_crash_signature_nonedit_display"><i>None</i></span>
- (<a id="cf_crash_signature_action" href="#">edit</a>)
- </span>
- <span id="cf_crash_signature_input">
- <textarea id="cf_crash_signature" name="cf_crash_signature" rows="4" cols="60"
- >[% cf_crash_signature FILTER html %]</textarea>
- </span>
- </td>
- </tr>
-</tbody>
-[% END %]
+[% Hook.process('after_custom_fields') %]
[% display_flags = 0 %]
[% any_flags_requesteeble = 0 %]