Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 330975 Details for
Bug 427933
XMLRPC function getBugFields
Home
New
Search
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.rh90 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]
v1 for xmlrpc function Bug.get_fields + pod
xmlrpc_getfields.patch (text/plain), 1.33 KB, created by
Noura El hawary
on 2009-02-05 09:30:27 UTC
(
hide
)
Description:
v1 for xmlrpc function Bug.get_fields + pod
Filename:
MIME Type:
Creator:
Noura El hawary
Created:
2009-02-05 09:30:27 UTC
Size:
1.33 KB
patch
obsolete
>Index: Bugzilla/WebService/Bug.pm >=================================================================== >RCS file: /cvs/qa/rh_bugzilla_3/Bugzilla/WebService/Bug.pm,v >retrieving revision 1.27 >diff -p -u -r1.27 Bug.pm >--- Bugzilla/WebService/Bug.pm 5 Feb 2009 05:28:52 -0000 1.27 >+++ Bugzilla/WebService/Bug.pm 5 Feb 2009 09:26:52 -0000 >@@ -933,6 +933,26 @@ sub update { > return { bug_updates => \%changes }; > } > >+sub get_fields { >+ my ($self) = @_; >+ my %ok_field = ( >+ 'groups' => 1, >+ 'longdescs' => 1, >+ ); >+ >+ # REDHAT EXTENSION BEGIN 406301 >+ $logger->debug("Starting"); >+ # REDHAT EXTENSION END 406301 >+ >+ foreach my $field( Bugzilla->get_fields() ) { >+ my $name = $field->name; >+ $name =~ s/^cf_//; # Remove custom field designation >+ $ok_field{$name}++; >+ } >+ >+ return { bug_fields => [keys %ok_field] }; >+} >+ > 1; > > __END__ >@@ -1234,6 +1254,28 @@ present in this hash. > > =back > >+=item C<get_fields> >+ >+B<EXPERIMENTAL> >+ >+=over >+ >+=item B<Description> >+ >+Returns a list of fields that may be returned for attributes of a bug report using >+Bug.get. >+ >+=item B<Params> (none) >+ >+=item B<Returns> >+ >+A hash with one element, C<bug_fields>. which is an Array of bug fields that are >+visible to the user. >+ >+=item B<Errors> (none) >+ >+=back >+ > =back > > =head2 Bug Creation and Modification
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 427933
: 330975