3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-05-05 14:15:29 +00:00

Bugfixes based on functional tests (#3338)

* Toggles the disabled state of auto_increment_prefix

To insert a prefix you had to toggle the checkbox, save the settings and reload. With this script it is immediate. Fixes #1390

* Delete asset image: made checkbox more visible

Related to #3153

* Added personal-access-token component

* Created basic API testing configuration

* First version of /components endpoind cest

* On-the-fly bearer token generation

* Completed testing of PATCH and PUT methods

* Added /components/{id}/assets route with tests

* Updated route and dataTable in view

* Completed test assertion

* Added links to assets in ComponentsAssets view

* Linked Company in AssetView page

* Bugfixes based on functional tests

* Removed unused function

* Marked tests as incomplete

* Added check for  existence in groups/edit.blade.php
This commit is contained in:
Andrea Bergamasco
2017-02-23 07:49:19 +01:00
committed by snipe
parent ad9470b6f8
commit e7f7d739ed
9 changed files with 49 additions and 27 deletions

View File

@ -72,7 +72,7 @@ class GroupsController extends Controller
if ($group->save()) {
return redirect()->route("groups.index")->with('success', trans('admin/groups/message.success.create'));
}
return redirect()->back()->withInput()->withErrors($group->getErrors());
return redirect(route('groups.create'))->withInput()->withErrors($group->getErrors());
}
/**