if (defined $cgi->param('maketemplate')) {
$vars->{'url'} = $cgi->query_string();
+ $vars->{'short_desc'} = $cgi->param('short_desc');
print $cgi->header();
$template->process("bug/create/make-template.html.tmpl", $vars)
# Rights Reserved.
#
# Contributor(s): Gervase Markham <gerv@gerv.net>
+ # Marc Schumann <wurblzap@gmail.com>
+ #%]
+
+[%# INTERFACE:
+ # url: URL to a pre-filled bug entry form.
+ # short_desc: Bug summary as entered in the form.
#%]
[% PROCESS global/variables.none.tmpl %]
<p>
You can bookmark this link:
- “<a href="enter_bug.cgi?[% url FILTER html %]">[% terms.Bug %]
- entry template</a>”.
+ “<a href="enter_bug.cgi?[% url FILTER html %]">
+ [% IF short_desc %]
+ [% short_desc FILTER html %]
+ [% ELSE %]
+ [% terms.Bug %] entry template
+ [% END %]</a>”.
This bookmark will bring up the <em>Enter [% terms.Bug %]</em> page with the
fields initialized as you've requested.
</p>