function uc_affiliate2_admin_users() displays a form where you can enter how much commission you paid the affiliate. The form now gets filled in with an amount and currency sign. If you save with a currency sign in the form it gives you an error. Easy fix though.
Now
// format paid field as link or form
if ($month_timestamp && is_numeric($month_timestamp) && $date == $month_timestamp) {
$paid = drupal_get_form('uc_affiliate2_admin_users_paid_form', $amount, $uid, $date);
}
Should be
// format paid field as link or form
if ($month_timestamp && is_numeric($month_timestamp) && $date == $month_timestamp) {
$paid = drupal_get_form('uc_affiliate2_admin_users_paid_form', uc_currency_format($amount,false), $uid, $date);
}
Comments
Comment #1
bojanz commentedCouldn't replicate the error, but I agree with the principle. The code is simpler now.
Fixed in CVS for both branches.