From 2b803a6a6c03d17dd202eeb6072db9272cdda8fe Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 19 Oct 2017 02:22:05 -0700 Subject: [PATCH] Fixes #4257 - use admin url when editing groups --- resources/views/partials/bootstrap-table.blade.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index fc7aca555..209ec3bd5 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -179,16 +179,21 @@ $('.snipe-table').bootstrapTable({ var actions = ''; + var dest = destination; + if (destination=='groups') { + var dest = 'admin/groups'; + } + if ((row.available_actions) && (row.available_actions.clone === true)) { - actions += ' '; + actions += ' '; } if ((row.available_actions) && (row.available_actions.update === true)) { - actions += ' '; + actions += ' '; } if ((row.available_actions) && (row.available_actions.delete === true)) { - actions += ' '; + actions += ' '; } return actions;