mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-18 12:28:46 +00:00
Some more catches and small tweaks for issue #6. [skip ci]
This commit is contained in:
@@ -111,7 +111,7 @@ class PiggybankController extends BaseController
|
||||
$data['order'] = 0;
|
||||
|
||||
$piggyBank = $this->_repository->store($data);
|
||||
if ($piggyBank->validate()) {
|
||||
if (!is_null($piggyBank->id)) {
|
||||
Session::flash('success', 'New piggy bank "' . $piggyBank->name . '" created!');
|
||||
|
||||
return Redirect::route('piggybanks.index');
|
||||
|
||||
Reference in New Issue
Block a user