We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa04b4f commit bfaa78dCopy full SHA for bfaa78d
src/Controller/TranslationsController.php
@@ -161,11 +161,11 @@ public function delete($id = null)
161
{
162
$this->request->allowMethod(['post', 'delete']);
163
$translation = $this->Translations->get($id);
164
- if ($this->Translations->delete($translation)) {
165
- $this->Flash->success(__('The translation has been deleted.'));
166
- } else {
167
- $this->Flash->error(__('The translation could not be deleted. Please, try again.'));
168
- }
+ //if ($this->Translations->delete($translation)) {
+ // $this->Flash->success(__('The translation has been deleted.'));
+ //} else {
+ // $this->Flash->error(__('The translation could not be deleted. Please, try again.'));
+ //}
169
return $this->redirect(['action' => 'index']);
170
}
171
0 commit comments