|
@@ 1122-1128 (lines=7) @@
|
| 1119 |
|
$this->pageAlert(__('Some errors were encountered while attempting to save.'), Alert::ERROR); |
| 1120 |
|
|
| 1121 |
|
// Secondary checks, this will actually process the data and attempt to save |
| 1122 |
|
} elseif (Entry::__ENTRY_OK__ !== $entry->setDataFromPost($fields, $errors)) { |
| 1123 |
|
foreach ($errors as $field_id => $message) { |
| 1124 |
|
$this->pageAlert($message, Alert::ERROR); |
| 1125 |
|
} |
| 1126 |
|
|
| 1127 |
|
// Everything is awesome. Dance. |
| 1128 |
|
} else { |
| 1129 |
|
/** |
| 1130 |
|
* Just prior to creation of an Entry |
| 1131 |
|
* |
|
@@ 1401-1407 (lines=7) @@
|
| 1398 |
|
$this->pageAlert(__('Some errors were encountered while attempting to save.'), Alert::ERROR); |
| 1399 |
|
|
| 1400 |
|
// Secondary checks, this will actually process the data and attempt to save |
| 1401 |
|
} elseif (Entry::__ENTRY_OK__ !== $entry->setDataFromPost($fields, $errors)) { |
| 1402 |
|
foreach ($errors as $field_id => $message) { |
| 1403 |
|
$this->pageAlert($message, Alert::ERROR); |
| 1404 |
|
} |
| 1405 |
|
|
| 1406 |
|
// Everything is awesome. Dance. |
| 1407 |
|
} else { |
| 1408 |
|
/** |
| 1409 |
|
* Just prior to editing of an Entry. |
| 1410 |
|
* |