Commit cf5145f7c742313e41cbe6bef85ed4b84b0fd940
1 parent
9b209631
test
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/library/App/Controllers/UserController.php
| ... | ... | @@ -79,14 +79,14 @@ class UserController extends CrudResourceController |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | if (!$newItem) { |
| 82 | - return $this->onCreateFailed($item, $data); | |
| 82 | + return $this->onCreateFailed($newItem, $data); | |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | $newItem->save(); |
| 86 | 86 | |
| 87 | 87 | //$primaryKey = $this->getModelPrimaryKey(); |
| 88 | 88 | $responseData = $this->getFindData($newItem->id); |
| 89 | - | |
| 89 | + return var_dump($responseData); | |
| 90 | 90 | $response = $this->getCreateResponse($responseData, $data); |
| 91 | 91 | |
| 92 | 92 | $this->afterHandleCreate($newItem, $data, $response); | ... | ... |