Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to delete fields

687 views
Skip to first unread message

d_lem...@cpbourg.com

unread,
Mar 12, 2008, 7:37:16 AM3/12/08
to support-...@lists.mozilla.org
Hi

Could you tell me how to delete fields like SEVERITY , PLATFORM or OS from
the Bugs' creation page ?

Regards
*** Confidentiality Notice: This email message (including attachments, if
any) is from CP Bourg sa and is intended only for the use of the named
addressee(s). It contains information that is confidential and/or legally
privileged or otherwise protected from unauthorised disclosure. If you are
not the intended recipient, you are hereby notified that any use, reading,
distribution or copying of this e-mail and any attachment is strictly
prohibited. If you have received this e-mail in error, please notify the
sender by return e-mail and immediately destroy the email message and any
attachments as well as any copies of it.***

Tosh, Michael J

unread,
Mar 12, 2008, 10:53:36 AM3/12/08
to d_lem...@cpbourg.com, support-...@lists.mozilla.org
> Could you tell me how to delete fields like SEVERITY , PLATFORM or OS
from
> the Bugs' creation page ?

copy template/en/default/bug/create/create.html.tmpl to
template/en/custom/bug/create/create.html.tmpl
Edit template/en/custom/bug/create/create.html.tmpl and change any
displayed text for OS/Platform/Severity to a hidden input:
<input type="hidden" id="bug_severity" name="bug_severity"
value="[% default.bug_severity FILTER html %]">

d_lem...@cpbourg.com

unread,
Mar 13, 2008, 5:10:38 AM3/13/08
to Tosh, Michael J, support-bugz...@lists.mozilla.org, support-...@lists.mozilla.org
This is what can I found about fields SEVERITY / PLATFORM / OS
How can I hidde these fields?

What about #line... ?
Must I change these line?

$output .= "\n </select>\n </td>\n </tr>\n\n <tr>\n
<td>&nbsp;</td>\n <td colspan=\"3\">&nbsp;</td>\n </tr>\n\n <tr>";
#line 228 "template/en/default/bug/create/create.html.tmpl"
$stash->set('sel', { 'description' => 'Severity', 'name' =>
'bug_severity' });
#line 229 "template/en/default/bug/create/create.html.tmpl"
$output .= $context->include('select');
$output .= "\n";
#line 231 "template/en/default/bug/create/create.html.tmpl"
$stash->set('sel', { 'description' => 'Platform', 'name' =>
'rep_platform' });
#line 232 "template/en/default/bug/create/create.html.tmpl"
$output .= $context->include('select');
$output .= "\n </tr>\n\n <tr>";
#line 243 "template/en/default/bug/create/create.html.tmpl"
if ($stash->get(['Param', [ 'letsubmitterchoosepriority' ]])) {
#line 237 "template/en/default/bug/create/create.html.tmpl"
$stash->set('sel', { 'description' => 'Priority', 'name' => 'priority'
});
#line 238 "template/en/default/bug/create/create.html.tmpl"
$output .= $context->include('select');
}

Regards


"Tosh, Michael J" <michael...@lmco.com>
Envoyé par : support-bugz...@lists.mozilla.org
12/03/2008 16:04

A
d_lem...@cpbourg.com, support-...@lists.mozilla.org
cc

Objet
RE: How to delete fields

_______________________________________________
support-bugzilla mailing list
support-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put support-...@lists.mozilla.org in the To: field when you
reply.


*** See our disclaimer at http://www.cpbourg.com/_Text/disclaimer.htm ***

Tosh, Michael J

unread,
Mar 13, 2008, 9:51:36 AM3/13/08
to d_lem...@cpbourg.com, support-bugz...@lists.mozilla.org, support-...@lists.mozilla.org
Wrong file. This file you have is a Perl-formatted page in data/template/template/... You are looking for the template file before it gets formatted living in template/en/custom.

________________________________

Regards

12/03/2008 16:04

https://lists.mozilla.org/listinfo/support-bugzilla <https://lists.mozilla.org/listinfo/support-bugzilla>

PLEASE put support-...@lists.mozilla.org in the To: field when you reply.


*** See our disclaimer at http://www.cpbourg.com/_Text/disclaimer.htm <http://www.cpbourg.com/_Text/disclaimer.htm> ***

d_lem...@cpbourg.com

unread,
Mar 13, 2008, 11:51:22 AM3/13/08
to Tosh, Michael J, support-bugz...@lists.mozilla.org, support-...@lists.mozilla.org
This is the content of the good file ( I hope ;=)).. I'm novice
How to change it?

<tr>
[% sel = { description => 'Severity', name => 'bug_severity' } %]
[% INCLUDE select %]

[% sel = { description => 'Platform', name => 'rep_platform' } %]
[% INCLUDE select %]
</tr>

"Tosh, Michael J" <michael...@lmco.com>
Envoyé par : support-bugz...@lists.mozilla.org

13/03/2008 15:02

A
d_lem...@cpbourg.com
cc
support-bugz...@lists.mozilla.org,
support-...@lists.mozilla.org

________________________________

Regards

12/03/2008 16:04


*** See our disclaimer at http://www.cpbourg.com/_Text/disclaimer.htm ***

Tosh, Michael J

unread,
Mar 13, 2008, 11:57:51 AM3/13/08
to d_lem...@cpbourg.com, support-bugz...@lists.mozilla.org, support-...@lists.mozilla.org
Remove this:

<tr>
[% sel = { description => 'Severity', name => 'bug_severity' } %]
[% INCLUDE select %]

[% sel = { description => 'Platform', name => 'rep_platform' } %]
[% INCLUDE select %]
</tr>

Find this:
<form name="Create" id="Create" method="post" action="post_bug.cgi"
enctype="multipart/form-data">
<input type="hidden" name="product" value="[% product.name FILTER
html %]">
<input type="hidden" name="token" value="[% token FILTER html %]">

Then add this after the inputs listed above:
<input type=hidden id="bug_severity" name="bug_severity" value="[%
default.bug_severity FILTER html %]">
<input type=hidden id="rep_platform" name="rep_platform" value="[%
default.rep_platform FILTER html %]">

0 new messages