Closed
Bug 177160
Opened 23 years ago
Closed 21 years ago
Cannot remember empty URL field value in bookmarkable templates
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 181486
People
(Reporter: caillon, Assigned: shane.h.w.travis)
References
()
Details
Steps to reproduce:
1. Go to an enter bug form.
2. Remove the 'http://' value from the URL field.
3. Click the 'Remember values as bookmarkable template' button
4. Bookmark the link provided.
5. Visit the bookmark.
Actual results:
* The URL field contains 'http://'
Expected results:
* The URL field should be blank.
Comment 1•23 years ago
|
||
I'm pretty sure that's intentional.
On the other hand, I suppose if you look for "defined $::FORM{bug_loc}" instead
of "if !$::FORM{bug_loc}" you could probably tell the difference...
| Reporter | ||
Comment 2•23 years ago
|
||
If it's intentional (which I agree with you after seeing the code) then it is
IMO a bug. "" is a legal value for a form field.
| Reporter | ||
Comment 3•23 years ago
|
||
--- webtools/bugzilla/enter_bug.cgi 1 Oct 2002 22:41:07 -0000 1.75
+++ webtools/bugzilla/enter_bug.cgi 28 Oct 2002 20:41:14 -0000
@@ -106,5 +106,7 @@
sub formvalue {
my ($name, $default) = (@_);
- return $::FORM{$name} || $default || "";
+ return defined $::FORM{$name}
+ ? $::FORM{$name}
+ : ($default || "");
}
| Assignee | ||
Updated•21 years ago
|
Assignee: myk → travis
| Assignee | ||
Comment 4•21 years ago
|
||
Although bug 181486 came later, it is more comprehensive on what things aren't
carried over as a bookmark, so I'm duping this one to that one.
*** This bug has been marked as a duplicate of 181486 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Updated•13 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•