@@ 101-105 (lines=5) @@ | ||
98 | ||
99 | $this->redirect(array('controller' => 'reports', 'action' => 'view', |
|
100 | $reportId, )); |
|
101 | } else { |
|
102 | $flash_class = 'alert alert-error'; |
|
103 | $this->Flash->default($this->_getErrors($issueDetails, $status), |
|
104 | array('params' => array('class' => $flash_class))); |
|
105 | } |
|
106 | } |
|
107 | ||
108 | /** |
|
@@ 163-167 (lines=5) @@ | ||
160 | } |
|
161 | ||
162 | $reportsTable->save($report); |
|
163 | } else { |
|
164 | $flash_class = 'alert alert-error'; |
|
165 | $this->Flash->default($this->_getErrors($commentDetails, $status), |
|
166 | array('params' => array('class' => $flash_class))); |
|
167 | } |
|
168 | ||
169 | $this->redirect(array('controller' => 'reports', 'action' => 'view', |
|
170 | $reportId, )); |
|
@@ 218-222 (lines=5) @@ | ||
215 | // Update report status |
|
216 | $report->status = 'new'; |
|
217 | $reportsTable->save($report); |
|
218 | } else { |
|
219 | $flash_class = 'alert alert-error'; |
|
220 | $this->Flash->default($this->_getErrors($commentDetails, $status), |
|
221 | array('params' => array('class' => $flash_class))); |
|
222 | } |
|
223 | ||
224 | $this->redirect(array('controller' => 'reports', 'action' => 'view', |
|
225 | $reportId, )); |
|
@@ 333-337 (lines=5) @@ | ||
330 | TableRegistry::get('Reports')->save($report); |
|
331 | } |
|
332 | ||
333 | if ($msg !== '') { |
|
334 | $flash_class = 'alert alert-success'; |
|
335 | $this->Flash->default($msg, |
|
336 | array('params' => array('class' => $flash_class))); |
|
337 | } |
|
338 | ||
339 | return true; |
|
340 | } elseif ($response === 403) { |