Fixes for upstream

This commit is contained in:
Deon George
2012-07-01 10:18:21 +10:00
parent eb4722f92d
commit 5f5d8a906a
3 changed files with 14 additions and 4 deletions

View File

@@ -79,10 +79,10 @@ class Controller_Admin_Product extends Controller_TemplateDefault_Admin {
if ($_POST) {
if (isset($_POST['product_translate']['id']) AND ($pto=ORM::factory('product_translate',$_POST['product_translate']['id'])) AND $pto->loaded())
if (! $pto->values($_POST['product_translate'])->update()->saved())
if (! $pto->values($_POST['product_translate'])->save())
throw new Kohana_Exception('Failed to save updates to product_translate data for record :record',array(':record'=>$po->id()));
if (! $po->values($_POST)->update()->saved())
if (! $po->values($_POST)->save())
throw new Kohana_Exception('Failed to save updates to product data for record :record',array(':record'=>$so->id()));
}