$this->init(); // for pman.
$x = $this->dataObject($tab);
-
+
$this->transObj = clone($x);
$this->transObj->query('BEGIN');
// do we really delete stuff!?!?!?
return $this->delete($x,$_REQUEST);
}
-
+
$old = false;
}
- if (!empty($_REQUEST[$this->key])) {
+ if (!empty($_REQUEST[$this->key])) {
// it's a create..
if (!$x->get($this->key, $_REQUEST[$this->key])) {
$this->jerr("Invalid request (id does not point to a record.)");
}
$res = $x->insert();
- var_dump($res); exit;
+
if ($res === false) {
$this->jerr($x->_lastError->toString());
}