Skip to content

Commit bfaa78d

Browse files
authored
inactivate delete
1 parent fa04b4f commit bfaa78d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Controller/TranslationsController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ public function delete($id = null)
161161
{
162162
$this->request->allowMethod(['post', 'delete']);
163163
$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-
}
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+
//}
169169
return $this->redirect(['action' => 'index']);
170170
}
171171

0 commit comments

Comments
 (0)