diff --git a/application/modules/teams/controllers/admin/Index.php b/application/modules/teams/controllers/admin/Index.php index db32cb918..2882e62a5 100644 --- a/application/modules/teams/controllers/admin/Index.php +++ b/application/modules/teams/controllers/admin/Index.php @@ -72,7 +72,7 @@ public function indexAction() } } - if ($this->getRequest()->getPost('saveTeams')) { + if ($this->getRequest()->getPost('saveTeams') && !empty($this->getRequest()->getPost('items'))) { foreach ($this->getRequest()->getPost('items') as $i => $teamId) { $teamsMapper->sort($teamId, $i); } diff --git a/application/modules/teams/views/admin/index/index.php b/application/modules/teams/views/admin/index/index.php index 3a1b5ffe8..5e8c1a09e 100644 --- a/application/modules/teams/views/admin/index/index.php +++ b/application/modules/teams/views/admin/index/index.php @@ -1,16 +1,17 @@

getTrans('manage') ?>

-
- getTokenField() ?> -
- - - - - - - - - +get('teams'))): ?> + + getTokenField() ?> +
+
+ + + + + + + + @@ -18,42 +19,39 @@ - - - get('teams') != ''): ?> - get('teams') as $team): ?> - - - - - - - - - - + + + get('teams') as $team): ?> - + + + + + + - - -
getCheckAllCheckbox('check_teams') ?> getTrans('menuTeam') ?>
getDeleteCheckbox('check_teams', $team->getId()) ?>getEditIcon(['action' => 'treat', 'id' => $team->getId()]) ?>getDeleteIcon(['action' => 'del', 'id' => $team->getId()]) ?>escape($team->getName()) ?>
getTrans('noCats') ?>getDeleteCheckbox('check_teams', $team->getId()) ?>getEditIcon(['action' => 'treat', 'id' => $team->getId()]) ?>getDeleteIcon(['action' => 'del', 'id' => $team->getId()]) ?>escape($team->getName()) ?>
-
-
- -
-
+
+ +
+ + +
+ -
- -
-
+ + + getTrans('noTeams') ?> +