Commit MySQL changes
authorRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 18:44:46 +0000 (18:44 +0000)
committerRichard Whitehouse <richardwhiuk@richardwhiuk.com>
Fri, 4 Feb 2011 18:44:46 +0000 (18:44 +0000)
pages/add.php

index 467f446a55bb04ef76f028023fdffddb741e773a..b4a34c0869437d74d79c63bf365ef8cb1d5a9d3d 100644 (file)
@@ -44,8 +44,8 @@ class Page_Add extends Page {
                                if(!$this->error){
                                        $current = Order::Unconfirmed_By_User($system->user());
                                        $current->order($type, $this->name);
-                                       var_dump($this);
-                                       exit;
+                                       $system->database->commit();
+                                       header('Location: ' . $system->url('index'));
                                }
                        }