Undo... pass any additional parameters to the _edit_form method

This commit is contained in:
Tim Almdal
2009-03-08 07:55:37 +00:00
parent 186eeb8e20
commit bf6c814e81

View File

@@ -106,7 +106,7 @@ class REST_Controller extends Controller {
}
/* We're editing an existing item, load it from the database. */
public function form_edit($resource_id, $args=null) {
public function form_edit($resource_id) {
if ($this->resource_type == null) {
throw new Exception("@todo ERROR_MISSING_RESOURCE_TYPE");
}
@@ -117,7 +117,7 @@ class REST_Controller extends Controller {
return Kohana::show_404();
}
return $this->_form_edit($resource, $args);
return $this->_form_edit($resource);
}
/* We're adding a new item, pass along any additional parameters. */