mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-26 16:26:35 -06:00
Fixed piggy bank delete routine.
This commit is contained in:
parent
bb36ad64a7
commit
e26d2376fc
@ -78,7 +78,7 @@ class PiggyBankController extends Controller
|
||||
{
|
||||
$subTitle = 'Delete "' . e($piggyBank->name) . '"';
|
||||
|
||||
return view('piggy_banks.delete', compact('piggyBank', 'subTitle'));
|
||||
return view('piggy-banks.delete', compact('piggyBank', 'subTitle'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -90,9 +90,9 @@ class PiggyBankController extends Controller
|
||||
{
|
||||
|
||||
Session::flash('success', 'Piggy bank "' . e($piggyBank->name) . '" deleted.');
|
||||
$this->_repository->destroy($piggyBank);
|
||||
$piggyBank->delete();
|
||||
|
||||
return Redirect::route('piggy_banks.index');
|
||||
return Redirect::route('piggy-banks.index');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,7 @@
|
||||
@extends('layouts.default')
|
||||
@section('content')
|
||||
{{ Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $piggyBank) }}
|
||||
{{Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('piggy-banks.destroy',$piggyBank->id)])}}
|
||||
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $piggyBank) !!}
|
||||
{!! Form::open(['class' => 'form-horizontal','id' => 'destroy','url' => route('piggy-banks.destroy',$piggyBank->id)]) !!}
|
||||
<div class="row">
|
||||
<div class="col-lg-6 col-md-12 col-sm-12">
|
||||
<div class="panel panel-red">
|
||||
@ -33,5 +33,5 @@
|
||||
</div>
|
||||
|
||||
|
||||
{{Form::close()}}
|
||||
{!! Form::close() !!}
|
||||
@stop
|
||||
|
Loading…
Reference in New Issue
Block a user