mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-06 01:45:22 +00:00
Ability to highlight a particular transaction. [skip ci]
This commit is contained in:
@@ -117,7 +117,7 @@ class BudgetController extends BaseController
|
||||
|
||||
return View::make('budgets.show')->with('budget', $budget)->with('repetitions', $repetitions)->with(
|
||||
'filters', $filters
|
||||
);
|
||||
)->with('highlight',Input::get('highlight'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,7 +60,9 @@ class CategoryController extends BaseController
|
||||
|
||||
$journals = $this->_category->journalsInRange($category, $start, $end);
|
||||
|
||||
return View::make('categories.show')->with('category', $category)->with('journals', $journals);
|
||||
return View::make('categories.show')->with('category', $category)->with('journals', $journals)->with(
|
||||
'highlight', Input::get('highlight')
|
||||
);
|
||||
}
|
||||
|
||||
public function store()
|
||||
@@ -84,16 +86,17 @@ class CategoryController extends BaseController
|
||||
public function update(Category $category)
|
||||
{
|
||||
$category = $this->_repository->update($category, Input::all());
|
||||
if($category->validate()) {
|
||||
if ($category->validate()) {
|
||||
Session::flash('success', 'Category "' . $category->name . '" updated.');
|
||||
|
||||
return Redirect::route('categories.index');
|
||||
} else {
|
||||
Session::flash('success', 'Could not update category "' . $category->name . '".');
|
||||
|
||||
return Redirect::route('categories.edit')->withErrors($category->errors())->withInput();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user