Closed (fixed)
Project:
UC Recurring Payments and Subscriptions
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2010 at 20:15 UTC
Updated:
27 Mar 2014 at 00:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rstaylor commentedrepatch, may as well log success message too.
Comment #2
univate commentedWhy the difference between the use of $user->uid / $result['uid'] and $result['message'] / $result['comment']?
Powered by Dreditor.
Comment #3
rstaylor commentedAfter looking at it more closely, on success the uc_authorizenet module does actually log a comment in _uc_authorizenet_cim_profile_charge(), it's just on failure that it doesn't, returning the comment instead (in both 'comment' and 'message').
So in this, $user->uid should only be needed for the case where no reference is found and the function call is skipped.
Comment #4
damienmckennaRerolled.
Comment #5
tinker commentedVerified the patch in #4 works great but univate's point from #2 is valid. The order comment's user is the person (or process) that enters the comment. It is not the customer's uid. So in this case it should be global user which will show that it was an automated process that created the comment.
Attached patch can be applied using
git am uc_recurring-cim-log-error-691884-5.patchI would mark this RTBC but since I made a change I will leave it up to someone else.
Comment #6
univate commentedCommitted.