Work on Email and other major consistency work

This commit is contained in:
Deon George
2013-11-22 15:36:50 +11:00
parent 89deb9c97b
commit c18d5a3881
55 changed files with 550 additions and 575 deletions

View File

@@ -65,8 +65,8 @@ class Controller_Admin_Product extends Controller_Product {
if (! $pco->loaded())
HTTP::redirect(URL::link('admin','product/list'));
if ($_POST)
$pco->values($_POST)->save();
if ($_POST AND $pco->values($_POST)->changed() AND (! $this->save($pco)))
$pco->reload();
Script::factory()
->type('stdin')
@@ -113,8 +113,8 @@ $(document).ready(function() {
if (! $po->loaded())
HTTP::redirect('welcome/index');
if ($_POST)
$po->values($_POST)->save();
if ($_POST AND $po->values($_POST)->changed() AND (! $this->save($po)))
$po->reload();
Script::factory()
->type('stdin')