Replace status with active in tables
This commit is contained in:
@@ -62,7 +62,7 @@ abstract class Checkout_Plugin_Paypal extends Checkout_Plugin {
|
||||
$debug_mode = Kohana::$config->load('debug')->checkout_notify;
|
||||
|
||||
// If testing
|
||||
if (! $cno->status OR $cno->processed OR ($debug_mode AND Request::$client_ip == $this->ipn_test))
|
||||
if (! $cno->active OR $cno->processed OR ($debug_mode AND Request::$client_ip == $this->ipn_test))
|
||||
return _('Thank you');
|
||||
|
||||
$co = Cart::instance(isset($cno->data['custom']) ? $cno->data['custom'] : '');
|
||||
@@ -200,14 +200,14 @@ abstract class Checkout_Plugin_Paypal extends Checkout_Plugin {
|
||||
}
|
||||
|
||||
} else {
|
||||
$cno->status = FALSE;
|
||||
$cno->active = FALSE;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'INVALID':
|
||||
default:
|
||||
$cno->status = FALSE;
|
||||
$cno->active = FALSE;
|
||||
}
|
||||
|
||||
if (! $debug_mode)
|
||||
|
@@ -63,7 +63,7 @@ class Controller_Checkout extends Controller_TemplateDefault {
|
||||
|
||||
if (! $test_id) {
|
||||
$cno->checkout_id = $co->id;
|
||||
$cno->status = 1;
|
||||
$cno->active = 1;
|
||||
$cno->data = Request::current()->post();
|
||||
$cno->save();
|
||||
|
||||
|
@@ -21,7 +21,7 @@ class Task_Checkout_Notify_List extends Minion_Task {
|
||||
$cno->display('date_orig'),
|
||||
$cno->checkout_id,
|
||||
$cno->checkout->name,
|
||||
$cno->status ? 'A' : 'I',
|
||||
$cno->active ? 'A' : 'I',
|
||||
$cno->processed ? 'A' : 'I',
|
||||
$cno->data['mc_gross'],
|
||||
$cno->data['mc_fee'],
|
||||
|
Reference in New Issue
Block a user