Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 313782 Details for
Bug 457676
Dependency fields (Depends On, Blocks) don't show symbolic aliases
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
v2 add alias to dependency bug ids
dep_alias.patch (text/plain), 3.24 KB, created by
Noura El hawary
on 2008-08-08 05:09:25 UTC
(
hide
)
Description:
v2 add alias to dependency bug ids
Filename:
MIME Type:
Creator:
Noura El hawary
Created:
2008-08-08 05:09:25 UTC
Size:
3.24 KB
patch
obsolete
>Index: Bugzilla/Template.pm >=================================================================== >RCS file: /cvs/qa/rh_bugzilla_3/Bugzilla/Template.pm,v >retrieving revision 1.10 >diff -p -u -r1.10 Template.pm >--- Bugzilla/Template.pm 1 Jul 2008 21:04:25 -0000 1.10 >+++ Bugzilla/Template.pm 8 Aug 2008 05:08:23 -0000 >@@ -314,9 +314,10 @@ sub get_attachment_link { > # - The link text, to place between the <a>..</a> > # - An optional comment number, for linking to a particular > # comment in the bug >- >+# REDHAT EXTENSION 457676 >+# added use_alias param and all alias occurances in the subroutine > sub get_bug_link { >- my ($bug_num, $link_text, $comment_num) = @_; >+ my ($bug_num, $link_text, $comment_num, $use_alias) = @_; > my $dbh = Bugzilla->dbh; > > if (!defined($bug_num) || ($bug_num eq "")) { >@@ -325,11 +326,15 @@ sub get_bug_link { > my $quote_bug_num = html_quote($bug_num); > detaint_natural($bug_num) || return "<invalid bug number: $quote_bug_num>"; > >- my ($bug_state, $bug_res, $bug_desc) = >- $dbh->selectrow_array('SELECT bugs.bug_status, resolution, short_desc >+ my ($bug_state, $bug_res, $bug_desc, $alias) = >+ $dbh->selectrow_array('SELECT bugs.bug_status, resolution, short_desc, alias > FROM bugs WHERE bugs.bug_id = ?', > undef, $bug_num); > >+ if ($use_alias && $alias) { >+ $link_text = $alias; >+ } >+ > if ($bug_state) { > # Initialize these variables to be "" so that we don't get warnings > # if we don't change them below (which is highly likely). >@@ -556,11 +561,13 @@ sub create { > 1 > ], > >+ # REDHAT EXTENSION START 457676 >+ # added alias param to the subroutine > bug_link => [ sub { >- my ($context, $bug) = @_; >+ my ($context, $bug, $use_alias) = @_; > return sub { > my $text = shift; >- return get_bug_link($bug, $text); >+ return get_bug_link($bug, $text, undef , $use_alias); > }; > }, > 1 >Index: template/en/default/bug/edit.html.tmpl >=================================================================== >RCS file: /cvs/qa/rh_bugzilla_3/template/en/default/bug/edit.html.tmpl,v >retrieving revision 1.40 >diff -p -u -r1.40 edit.html.tmpl >--- template/en/default/bug/edit.html.tmpl 5 Aug 2008 17:34:34 -0000 1.40 >+++ template/en/default/bug/edit.html.tmpl 8 Aug 2008 05:08:36 -0000 >@@ -1127,10 +1127,13 @@ > value="[% bug.${dep.fieldname}.join(', ') %]"> > [% END %] > </span> >- >+ >+ [%# REDHAT EXTENSION START 457676 %] > [% FOREACH depbug = bug.${dep.fieldname} %] >- [% depbug FILTER bug_link(depbug) FILTER none %][% " " %] >+ [% depbug FILTER bug_link(depbug, 1) FILTER none %][% " " %] > [% END %] >+ [%# REDHAT EXTENSION END 457676 %] >+ > [% IF bug.check_can_change_field(dep.fieldname, 0, 1) %] > <span id="[% dep.fieldname %]_edit_container" class="edit_me bz_default_hidden" > > (<a href="#" id="[% dep.fieldname %]_edit_action">edit</a>)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dkl
: review+
Actions:
View
|
Diff
Attachments on
bug 457676
:
313772
| 313782