Account controller #185

This commit is contained in:
James Cole
2016-03-12 11:05:26 +01:00
parent 1aea4045a3
commit 919aa70251
3 changed files with 8 additions and 9 deletions

View File

@@ -87,7 +87,7 @@ class AccountController extends Controller
$type = $account->accountType->type;
$typeName = Config::get('firefly.shortNamesByFullName.' . $type);
$name = $account->name;
$moveTo = Auth::user()->accounts()->find(intval(Input::get('move_account_before_delete')));
$moveTo = $repository->find(intval(Input::get('move_account_before_delete')));
$repository->destroy($account, $moveTo);