Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
c93b48cc
Commit
c93b48cc
authored
Oct 22, 2010
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 302293: Editing a flag type should tell me which changes have been made
a=LpSolit (module owner)
parent
dcbab52d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
7 deletions
+59
-7
editflagtypes.cgi
editflagtypes.cgi
+4
-3
messages.html.tmpl
template/en/default/global/messages.html.tmpl
+55
-4
No files found.
editflagtypes.cgi
View file @
c93b48cc
...
...
@@ -306,12 +306,13 @@ if ($action eq 'update') {
$flagtype
->
set_grant_group
(
$grant_group
);
$flagtype
->
set_request_group
(
$request_group
);
$flagtype
->
set_clusions
({
inclusions
=>
\
@inclusions
,
exclusions
=>
\
@exclusions
});
$flagtype
->
update
();
my
$changes
=
$flagtype
->
update
();
delete_token
(
$token
);
$vars
->
{
'name'
}
=
$flagtype
->
name
;
$vars
->
{
'message'
}
=
"flag_type_changes_saved"
;
$vars
->
{
'flagtype'
}
=
$flagtype
;
$vars
->
{
'changes'
}
=
$changes
;
$vars
->
{
'message'
}
=
'flag_type_updated'
;
my
@flagtypes
=
Bugzilla::
FlagType
->
get_all
;
$vars
->
{
'bug_types'
}
=
[
grep
{
$_
->
target_type
eq
'bug'
}
@flagtypes
];
...
...
template/en/default/global/messages.html.tmpl
View file @
c93b48cc
...
...
@@ -594,10 +594,61 @@
[% title = BLOCK %]Flag Type '[% name FILTER html %]' Created[% END %]
The flag type <em>[% name FILTER html %]</em> has been created.
[% ELSIF message_tag == "flag_type_changes_saved" %]
[% title = BLOCK %]Flag Type '[% name FILTER html %]' Changes Saved[% END %]
Your changes to the flag type <em>[% name FILTER html %]</em>
have been saved.
[% ELSIF message_tag == "flag_type_updated" %]
[% title = BLOCK %]Flag Type '[% flagtype.name FILTER html %]' Updated[% END %]
[% IF changes.size %]
Changes to the flag type <em>[% flagtype.name FILTER html %]</em>
have been saved:
<ul>
[% IF changes.is_active.defined %]
<li>Flag type is now [% flagtype.is_active ? "active" : "inactive" %]</li>
[% END %]
[% IF changes.name.defined %]
<li>Flag type renamed to <em>[% flagtype.name FILTER html %]</em></li>
[% END %]
[% IF changes.description.defined %]
<li>Description updated to <em>[% flagtype.description FILTER html %]</em></li>
[% END %]
[% IF changes.cc_list.defined %]
[% IF flagtype.cc_list %]
<li>CC list updated to <em>[% flagtype.cc_list FILTER html %]</em></li>
[% ELSE %]
<li>CC list is now empty</li>
[% END %]
[% END %]
[% IF changes.sortkey.defined %]
<li>Sortkey updated to <em>[% flagtype.sortkey FILTER html %]</em></li>
[% END %]
[% IF changes.is_requestable.defined %]
<li>Flag type is [% "no longer" UNLESS flagtype.is_requestable %] requestable</li>
[% END %]
[% IF changes.is_requesteeble.defined AND flagtype.is_requestable %]
<li>
Flag type is [% "no longer" UNLESS flagtype.is_requesteeble %]
specifically requestable
</li>
[% END %]
[% IF changes.is_multiplicable.defined %]
<li>Flag type is [% "no longer" UNLESS flagtype.is_multiplicable %] multiplicable</li>
[% END %]
[% IF changes.grant_group_id.defined %]
[% IF flagtype.grant_group_id %]
<li>Grant group updated to <em>[% flagtype.grant_group.name FILTER html %]</em></li>
[% ELSE %]
<li>Grant group deleted</li>
[% END %]
[% END %]
[% IF changes.request_group_id.defined %]
[% IF flagtype.request_group_id %]
<li>Request group updated to <em>[% flagtype.request_group.name FILTER html %]</em></li>
[% ELSE %]
<li>Request group deleted</li>
[% END %]
[% END %]
</ul>
[% ELSE %]
No changes made to file type <em>[% flagtype.name FILTER html %]</em>.
[% END %]
[% ELSIF message_tag == "flag_type_deleted" %]
[% title = BLOCK %]Flag Type '[% name FILTER html %]' Deleted[% END %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment