Internal overhaul of Cart/Checkout and other minor fixes

This commit is contained in:
Deon George
2013-12-02 15:16:28 +11:00
parent f8a5b153cf
commit 06b87c5135
26 changed files with 256 additions and 228 deletions

View File

@@ -95,7 +95,9 @@ class Controller_Admin_Payment extends Controller_Payment {
private function add_edit($id=NULL,$output='') {
$po = ORM::factory('Payment',$id);
if ($_POST) {
if ($this->request->post()) {
$po->values($this->request->post());
// Update our invoice payment items
if (isset($_POST['payment_item']) AND count($_POST['payment_item']))
foreach ($_POST['payment_item'] as $k=>$v) {