Closed
Bug 289002
Opened 20 years ago
Closed 20 years ago
cannot set/clear requests with requestee
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: LpSolit, Assigned: wicked)
Details
(Keywords: regression)
Attachments
(1 file)
|
1.10 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
when I try to clear requests (some having a requestee), I get the following error: URL: http://localhost/cvsbugzilla/process_bug.cgi undef error - Can't use string ("") as an ARRAY ref while "strict refs" in use at Bugzilla/User.pm line 1021.
| Reporter | ||
Comment 1•20 years ago
|
||
OK, please read line 1017 above (I had another patch applied).
# No mail if there are no events
return 0 if !scalar(@$events);
This comes from wants_mail().
Flags: blocking2.20?
Summary: cannot clear requests → cannot set/clear requests with requestee
Target Milestone: --- → Bugzilla 2.20
Comment 2•20 years ago
|
||
I can't figure out what's going on here. The calls to wants_mail in Flag.pm all pass array references, yet Perl is complaining that it's a scalar... Gerv
Comment 3•20 years ago
|
||
Perhaps it's these: /webtools/bugzilla/template/en/default/request/email.txt.tmpl, line 32 -- IF flag.requestee.wants_mail(constants.EVT_FLAG_REQUESTED) %] /webtools/bugzilla/template/en/default/request/email.txt.tmpl, line 37 -- IF flag.setter.wants_mail(constants.EVT_REQUESTED_FLAG) %]
Updated•20 years ago
|
Flags: blocking2.20? → blocking2.20+
| Assignee | ||
Comment 4•20 years ago
|
||
Myk was on right track. Those constants seemed to be passed in wrong format for the wants_mail sub. I wrapped them inside [] which fixed the problem.
Assignee: create-and-change → wicked
Status: NEW → ASSIGNED
Attachment #180136 -
Flags: review?(LpSolit)
| Reporter | ||
Comment 5•20 years ago
|
||
Comment on attachment 180136 [details] [diff] [review] Correct constant calls in template, V1 obviously correct. Tested, works! r=LpSolit Nice catch! Thanks to myk and wicked! :)
Attachment #180136 -
Flags: review?(LpSolit) → review+
| Reporter | ||
Updated•20 years ago
|
Flags: approval?
Updated•20 years ago
|
Flags: approval? → approval+
| Reporter | ||
Comment 6•20 years ago
|
||
Checking in template/en/default/request/email.txt.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/request/email.txt.tmpl,v <-- email.txt.tmpl new revision: 1.8; previous revision: 1.7 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 7•20 years ago
|
||
Thanks, guys :-) Gerv
You need to log in
before you can comment on or make changes to this bug.
Description
•