Unknown updates from production

This commit is contained in:
Deon George
2018-06-13 21:34:58 +10:00
parent e412ca72d0
commit a27787e0d4
73 changed files with 103 additions and 14 deletions

View File

@@ -56,6 +56,10 @@ class Controller_Reseller_Charge extends Controller_Charge {
$this->meta->title = $co->loaded() ? sprintf('Charge: %s (%s)',$co->name(),$co->account->name()) : 'New Charge';
// New charges
if (! $co->loaded())
$co->active = TRUE;
if ($this->request->post() AND $co->values($this->request->post())->changed() AND (! $this->save($co)))
$co->reload();