Commit 95c39134 authored by Per von Zweigbergk's avatar Per von Zweigbergk

(Base) Properly update argument list for save after implementing

parent d48d4191
......@@ -85,7 +85,7 @@ abstract class ApiMutableTableModelControllerBase extends ApiMutableModelControl
$node = $this->getNodeByUUID($uuid);
if ($node != null) {
$node->setNodes($this->request->getPost(static::$internalModelName));
return $this->save($mdl, $node, static::$internalModelName);
return $this->save($node);
}
}
}
......@@ -101,10 +101,9 @@ abstract class ApiMutableTableModelControllerBase extends ApiMutableModelControl
$result = array("result"=>"failed");
if ($this->request->isPost() && $this->request->hasPost(static::$internalModelName)) {
$mdl = $this->getModel();
// FIXME Is this correct?
$node = $this->getNodes()->add();
$node->setNodes($this->request->getPost(static::$internalModelName));
return $this->save($mdl, $node, static::$internalModelName);
return $this->save($node);
}
return $result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment