Closed (fixed)
Project:
Signup Pay for a node
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 May 2008 at 05:09 UTC
Updated:
16 Jun 2008 at 02:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
kbahey commentedWhat happens if more than one module try to change the amount? Which one "sticks"?
Also, does this code:
if ($adjusted_amount) {Work with an array?
Shouldn't this be something like:
if (count($adjusted_amount) > 0) {Comment #2
singularoI've changed the patch slightly, as we have more than one module changing the code, exactly as you say. Basically it uses a copy of the code from module_invoke instead using module_invoke to do cumulative adjustments. Only a couple of lines extra. Revised patch attached.
Comment #3
kbahey commentedModified it a bit to make it one place to call from.
Committed.
Thank you.
Comment #4
singularoCool, yeah, thats nicer.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.