Problem/Motivation

The error occurs at the node edit form. When there is difference in bid increment value in global setting vs individual auction, where the global increment is larger than the individual auction increment, we get the following error:
"The start price for this auctioned item should be a multiple of the Bid increment value, which is @inc. Try using @price instead. You may change the Bid increment value on the Auction settings page."

This is caused by not passing the proper argument to _uc_auction_mod_zero() function.

To make it worse, the error message is printing the correct bid increment, i.e. the individual bid increment.

E.g.
global increment: $50
individual increment: $1
error message:
The start price for this auctioned item should be a multiple of the Bid increment value, which is USD1.00. Try using USD1.00 instead. You may change the Bid increment value on the Auction settings page.

Proposed resolution

Pass the proper argument, $bid_increment to the _uc_auction_mod_zero() function in uc_auction.module:430. Without passing the second argument, _uc_auction_mod_zero() takes the global increment instead.

Remaining tasks

Verify changes and commit.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

loziju created an issue. See original summary.

loziju’s picture

Status: Active » Needs review
StatusFileSize
new1.01 KB
TotalNoob’s picture

I don't have that issue unless the site defaults were still used I changed site min to inteval 1
then max bid 1000 then max percentage 1000% If I change anything on node edit no errors . I only get the error you mention if I leave low defaults then change in node edit form which does then throw some weird 2usd error can fix no patch needed.