Closed (fixed)
Project:
e-Commerce
Version:
5.x-3.3
Component:
auction
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Aug 2007 at 17:18 UTC
Updated:
14 Sep 2007 at 11:22 UTC
Jump to comment: Most recent file
By default 'You are the current highest bidder is displayed' instead of 'You are not authorized to bid' even if there are no bids.
Only if there's a bid, 'You are not authorized to bid' message is displayed.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | auction_1.patch | 540 bytes | Mr Mason |
Comments
Comment #1
Mr Mason commentedI found how to fix this. For some reason the module would not catch if you were an anonymous user. All that needed to be done was change line 548 from
if ($high_bid['uid'] == $user->uid ) {to this
if ($high_bid['uid'] == $user->uid && uid != 0) {Comment #2
brmassa commentedGuys,
thanks for reporting. its fixed on eC4.
regards,
massa
Comment #3
gordon commentedPorted to 5.x-3.x-dev and 4.7.x-3.x-dev
Comment #4
dimsal commentedWell, I tried this fix, but now if I'm a high bidder and logged in, I see 'You may place a bid' instead of 'You're the current high bidder'...
and, as a side effect, a user can now outbid oneself... weird...
Any ideas?
Comment #5
dimsal commentedAnyone?
Comment #6
ax commentedwell - apparently, the 10-char-fix has a bug :S there is a syntax error in
&& uid != 0(or
and !empty(uid)as committed to the DRUPAL-4-7--3 branch)
which yields a in my setup (wondering how this got committed ...).
fix: replace
uidwith$user->uid.Comment #7
ax commentedi just see that this had been fixed in the DRUPAL-5--4 branch. this fix wasn't backported to the DRUPAL-5--3 and DRUPAL-4-7--3 branches, though. just did that - hope you don't mind.
Comment #8
(not verified) commented