|
@@ 1143-1149 (lines=7) @@
|
| 1140 |
|
$this->pageAlert(__('Some errors were encountered while attempting to save.'), Alert::ERROR); |
| 1141 |
|
|
| 1142 |
|
// Secondary checks, this will actually process the data and attempt to save |
| 1143 |
|
} elseif (Entry::__ENTRY_OK__ !== $entry->setDataFromPost($fields, $errors)) { |
| 1144 |
|
foreach ($errors as $field_id => $message) { |
| 1145 |
|
$this->pageAlert($message, Alert::ERROR); |
| 1146 |
|
} |
| 1147 |
|
|
| 1148 |
|
// Everything is awesome. Dance. |
| 1149 |
|
} else { |
| 1150 |
|
/** |
| 1151 |
|
* Just prior to creation of an Entry |
| 1152 |
|
* |
|
@@ 1422-1428 (lines=7) @@
|
| 1419 |
|
$this->pageAlert(__('Some errors were encountered while attempting to save.'), Alert::ERROR); |
| 1420 |
|
|
| 1421 |
|
// Secondary checks, this will actually process the data and attempt to save |
| 1422 |
|
} elseif (Entry::__ENTRY_OK__ !== $entry->setDataFromPost($fields, $errors)) { |
| 1423 |
|
foreach ($errors as $field_id => $message) { |
| 1424 |
|
$this->pageAlert($message, Alert::ERROR); |
| 1425 |
|
} |
| 1426 |
|
|
| 1427 |
|
// Everything is awesome. Dance. |
| 1428 |
|
} else { |
| 1429 |
|
/** |
| 1430 |
|
* Just prior to editing of an Entry. |
| 1431 |
|
* |