|
@@ 1123-1129 (lines=7) @@
|
| 1120 |
|
$this->pageAlert(__('Some errors were encountered while attempting to save.'), Alert::ERROR); |
| 1121 |
|
|
| 1122 |
|
// Secondary checks, this will actually process the data and attempt to save |
| 1123 |
|
} elseif (Entry::__ENTRY_OK__ != $entry->setDataFromPost($fields, $errors)) { |
| 1124 |
|
foreach ($errors as $field_id => $message) { |
| 1125 |
|
$this->pageAlert($message, Alert::ERROR); |
| 1126 |
|
} |
| 1127 |
|
|
| 1128 |
|
// Everything is awesome. Dance. |
| 1129 |
|
} else { |
| 1130 |
|
/** |
| 1131 |
|
* Just prior to creation of an Entry |
| 1132 |
|
* |
|
@@ 1426-1432 (lines=7) @@
|
| 1423 |
|
$this->pageAlert(__('Some errors were encountered while attempting to save.'), Alert::ERROR); |
| 1424 |
|
|
| 1425 |
|
// Secondary checks, this will actually process the data and attempt to save |
| 1426 |
|
} elseif (Entry::__ENTRY_OK__ != $entry->setDataFromPost($fields, $errors)) { |
| 1427 |
|
foreach ($errors as $field_id => $message) { |
| 1428 |
|
$this->pageAlert($message, Alert::ERROR); |
| 1429 |
|
} |
| 1430 |
|
|
| 1431 |
|
// Everything is awesome. Dance. |
| 1432 |
|
} else { |
| 1433 |
|
/** |
| 1434 |
|
* Just prior to editing of an Entry. |
| 1435 |
|
* |