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
aee162e1
Commit
aee162e1
authored
Mar 16, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 286286 : Incorrect name check when adding a new classification
Patch by Frederic Buclin <LpSolit@gmail.com> r=jake a=myk
parent
e490b45d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
editclassifications.cgi
editclassifications.cgi
+12
-8
No files found.
editclassifications.cgi
View file @
aee162e1
...
...
@@ -148,6 +148,9 @@ if ($action eq 'add') {
#
if
(
$action
eq
'new'
)
{
unless
(
$classification
)
{
ThrowUserError
(
"classification_not_specified"
);
}
if
(
TestClassification
(
$classification
))
{
ThrowUserError
(
"classification_already_exists"
,
{
name
=>
$classification
});
}
...
...
@@ -290,14 +293,6 @@ if ($action eq 'update') {
$dbh
->
bz_lock_tables
(
'classifications WRITE'
);
if
(
$description
ne
$descriptionold
)
{
$sth
=
$dbh
->
prepare
(
"UPDATE classifications
SET description=?
WHERE id=?"
);
$sth
->
execute
(
$description
,
$classification_id
);
$vars
->
{
'updated_description'
}
=
1
;
}
if
(
$classification
ne
$classificationold
)
{
unless
(
$classification
)
{
ThrowUserError
(
"classification_not_specified"
);
...
...
@@ -311,6 +306,15 @@ if ($action eq 'update') {
$sth
->
execute
(
$classification
,
$classification_id
);
$vars
->
{
'updated_classification'
}
=
1
;
}
if
(
$description
ne
$descriptionold
)
{
$sth
=
$dbh
->
prepare
(
"UPDATE classifications
SET description=?
WHERE id=?"
);
$sth
->
execute
(
$description
,
$classification_id
);
$vars
->
{
'updated_description'
}
=
1
;
}
$dbh
->
bz_unlock_tables
();
unlink
"data/versioncache"
;
...
...
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