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
0ed8d173
Commit
0ed8d173
authored
Jul 20, 2004
by
jouni%heikniemi.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 86051: Enable changing product name case.
Patch by GavinS <bugzilla@chimpychompy.org> r=jouni, a=justdave
parent
d2bec89f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
editproducts.cgi
editproducts.cgi
+18
-2
No files found.
editproducts.cgi
View file @
0ed8d173
...
...
@@ -306,13 +306,27 @@ if ($action eq 'new') {
PutTrailer
(
$localtrailer
);
exit
;
}
if
(
TestProduct
(
$product
))
{
my
$existing_product
=
TestProduct
(
$product
);
# Check for exact case sensitive match:
if
(
$existing_product
eq
$product
)
{
print
"The product '$product' already exists. Please press\n"
;
print
"<b>Back</b> and try again.\n"
;
PutTrailer
(
$localtrailer
);
exit
;
}
# Next check for a case-insensitive match:
if
(
lc
(
$existing_product
)
eq
lc
(
$product
))
{
print
"The new product '$product' differs from existing product "
;
print
"'$existing_product' only in case. Please press\n"
;
print
"<b>Back</b> and try again.\n"
;
PutTrailer
(
$localtrailer
);
exit
;
}
my
$version
=
trim
(
$::FORM
{
version
}
||
''
);
if
(
$version
eq
''
)
{
...
...
@@ -1190,7 +1204,9 @@ if ($action eq 'update') {
PutTrailer
(
$localtrailer
);
exit
;
}
if
(
TestProduct
(
$product
))
{
if
(
lc
(
$product
)
ne
lc
(
$productold
)
&&
TestProduct
(
$product
))
{
print
"Sorry, product name '$product' is already in use."
;
SendSQL
(
"UNLOCK TABLES"
);
PutTrailer
(
$localtrailer
);
...
...
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