Work on Email and other major consistency work
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user