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