Skip to content

Commit

Permalink
// Fix menu action bad behavior depending on a given module state
Browse files Browse the repository at this point in the history
  • Loading branch information
tchauviere committed Feb 15, 2016
1 parent 7ca71fe commit 6a55cc5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Adapter/Module/AdminModuleDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,15 @@ public function generateAddonsUrls(array $addons)
if ($addon->active == 0) {
$addon->url_active = 'enable';
unset(
$addon->urls['install']
$addon->urls['install'],
$addon->urls['disable']
);
} elseif ($addon->is_configurable == 1) {
$addon->url_active = 'configure';
unset(
$addon->urls['enable'],
$addon->urls['install']
$addon->urls['install'],
$addon->urls['update']
);
} else {
$addon->url_active = 'disable';
Expand Down

0 comments on commit 6a55cc5

Please sign in to comment.