We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8c662f commit 262675dCopy full SHA for 262675d
src/Controller/UsersController.php
@@ -87,11 +87,12 @@ public function edit($id = null)
87
->firstOrFail();
88
89
if ($this->request->is(['patch', 'post', 'put'])) {
90
+ // TODO: Upload photo
91
$user = $this->Users->patchEntity($user, $this->request->getData());
92
if ($this->Users->save($user)) {
93
$this->Flash->success(__('The user has been saved.'));
94
- return $this->redirect(['action' => 'index']);
95
+ return $this->redirect($this->referer());
96
}
97
$this->Flash->error(__('The user could not be saved. Please, try again.'));
98
0 commit comments