Work on Email and other major consistency work
This commit is contained in:
@@ -68,26 +68,8 @@ class Controller_Admin_Adsl extends Controller_Adsl {
|
||||
HTTP::redirect(URL::link('admin','adsl/list'));
|
||||
|
||||
if ($_POST) {
|
||||
// Entry updated
|
||||
if ($apo->values($_POST)->check() AND $apo->changed()) {
|
||||
try {
|
||||
if ($apo->save())
|
||||
SystemMessage::factory()
|
||||
->title('Record updated')
|
||||
->type('success')
|
||||
->body(_('Your Charge record has been recorded/updated.'));
|
||||
|
||||
} catch (ORM_Validation_Exception $e) {
|
||||
$errors = $e->errors('models');
|
||||
|
||||
SystemMessage::factory()
|
||||
->title('Record NOT updated')
|
||||
->type('error')
|
||||
->body(join('<br/>',array_values($errors)));
|
||||
|
||||
$sco->reload();
|
||||
}
|
||||
}
|
||||
if ($apo->values($_POST)->changed() AND (! $this->save($apo)))
|
||||
$apo->reload();
|
||||
|
||||
if (isset($_POST['test'])) {
|
||||
$charge = isset($_POST['test']['charge']) ? $_POST['test']['charge'] : FALSE;
|
||||
|
Reference in New Issue
Block a user