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
d33c399b
Commit
d33c399b
authored
Oct 02, 2014
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1076155: Remove "?" from table columns and labels + code cleanup
r=dkl a=justdave
parent
a9efeb74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
23 deletions
+14
-23
apikey.html.tmpl
template/en/default/account/prefs/apikey.html.tmpl
+1
-1
list.html.tmpl
template/en/default/flag/list.html.tmpl
+6
-9
userprefs.cgi
userprefs.cgi
+7
-13
No files found.
template/en/default/account/prefs/apikey.html.tmpl
View file @
d33c399b
...
...
@@ -29,7 +29,7 @@ here.</p>
<th>API key</th>
<th>Description (optional)</th>
<th>Last used</th>
<th>Revoked
?
</th>
<th>Revoked</th>
</tr>
[% FOREACH api_key IN api_keys %]
...
...
template/en/default/flag/list.html.tmpl
View file @
d33c399b
...
...
@@ -173,17 +173,14 @@
[% END %]
<td>
[% IF type.is_multiplicable && edit_multiple_bugs %]
<input type="checkbox"
name="flags_add-[% type.id %]"
id="flags_add-[% type.id %]">
<label for="flags_add-[% type.id %]">
<a class="field_help_link"
title="If ticked, always create a new flag. Leaving it unchecked will update existing flag(s) and add a new flag if it does not exist">
Always add?
</a>
<input type="checkbox" name="flags_add-[% type.id %]"
id="flags_add-[% type.id %]" value="1">
<label for="flags_add-[% type.id %]"
title="If ticked, always create a new flag. Leaving it unchecked will update existing flag(s) and add a new flag if it does not exist">
Always add
</label>
[% END %]
<td>
<
/
td>
</tr>
</tbody>
[% END %]
userprefs.cgi
View file @
d33c399b
...
...
@@ -526,8 +526,8 @@ sub SaveApiKey {
# Update any existing keys
my
$api_keys
=
Bugzilla::User::
APIKey
->
match
({
user_id
=>
$user
->
id
});
foreach
my
$api_key
(
@$api_keys
)
{
my
$description
=
$cgi
->
param
(
'description_'
.
$api_key
->
id
);
my
$revoked
=
$cgi
->
param
(
'revoked_'
.
$api_key
->
id
);
my
$description
=
$cgi
->
param
(
'description_'
.
$api_key
->
id
);
my
$revoked
=
$cgi
->
param
(
'revoked_'
.
$api_key
->
id
);
if
(
$description
ne
$api_key
->
description
||
$revoked
!=
$api_key
->
revoked
)
...
...
@@ -540,25 +540,19 @@ sub SaveApiKey {
}
}
#
Was a new api key requested
#
Create a new API key if requested.
if
(
$cgi
->
param
(
'new_key'
))
{
my
$new_key
=
Bugzilla::User::
APIKey
->
create
({
$vars
->
{
new_key
}
=
Bugzilla::User::
APIKey
->
create
({
user_id
=>
$user
->
id
,
description
=>
$cgi
->
param
(
'new_description'
),
});
# As a security precaution, we always sent out an e-mail when
# an API key is created
my
$lang
=
$user
->
setting
(
'lang'
)
//
Bugzilla::
User
->
new
()
->
setting
(
'lang'
);
my
$template
=
Bugzilla
->
template_inner
(
$lang
);
my
$template
=
Bugzilla
->
template_inner
(
$user
->
setting
(
'lang'
));
my
$message
;
$template
->
process
(
'email/new-api-key.txt.tmpl'
,
{
user
=>
$user
,
new_key
=>
$new_key
},
\
$message
)
||
ThrowTemplateError
(
$template
->
error
());
$template
->
process
(
'email/new-api-key.txt.tmpl'
,
$vars
,
\
$message
)
||
ThrowTemplateError
(
$template
->
error
());
MessageToMTA
(
$message
);
}
...
...
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