|
@@ 1541-1547 (lines=7) @@
|
| 1538 |
|
$this->pageAlert(__('Some errors were encountered while attempting to save.'), Alert::ERROR); |
| 1539 |
|
|
| 1540 |
|
// Secondary checks, this will actually process the data and attempt to save |
| 1541 |
|
} elseif (Entry::__ENTRY_OK__ !== $entry->setDataFromPost($fields, $errors)) { |
| 1542 |
|
foreach ($errors as $field_id => $message) { |
| 1543 |
|
$this->pageAlert($message, Alert::ERROR); |
| 1544 |
|
} |
| 1545 |
|
|
| 1546 |
|
// Everything is awesome. Dance. |
| 1547 |
|
} else { |
| 1548 |
|
/** |
| 1549 |
|
* Just prior to creation of an Entry |
| 1550 |
|
* |
|
@@ 1834-1840 (lines=7) @@
|
| 1831 |
|
$this->pageAlert(__('Some errors were encountered while attempting to save.'), Alert::ERROR); |
| 1832 |
|
|
| 1833 |
|
// Secondary checks, this will actually process the data and attempt to save |
| 1834 |
|
} elseif (Entry::__ENTRY_OK__ !== $entry->setDataFromPost($fields, $errors)) { |
| 1835 |
|
foreach ($errors as $field_id => $message) { |
| 1836 |
|
$this->pageAlert($message, Alert::ERROR); |
| 1837 |
|
} |
| 1838 |
|
|
| 1839 |
|
// Everything is awesome. Dance. |
| 1840 |
|
} else { |
| 1841 |
|
/** |
| 1842 |
|
* Just prior to editing of an Entry. |
| 1843 |
|
* |