Active
Project:
Ubercart Affiliate v2
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Sep 2011 at 04:33 UTC
Updated:
7 Sep 2011 at 04:33 UTC
Hello,
I just found a issue with $goto variable in uc_affiliate2_click_callback function. $goto defining after uc_affiliate2_click_callback been called - so we cant track destination.
So what I did - just move $goto definition above _uc_affiliate2_register_click
$num_args = func_num_args();
$goto = '<front>';
if ($num_args > 1) {
$args = func_get_args();
unset($args[0]);
$goto = join('/', $args);
}
if ($account && _uc_affiliate2_register_click($account, $goto)) {
Please put it into next release.
Thanks,
Vadim