Unverified Commit 858d6c6a authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(management) Specific actions should take precedence on act field

issue #6156
Showing with 5 additions and 5 deletions
+5 -5
......@@ -482,6 +482,11 @@ class managementListing
return $result;
}
// Filter POST with "act" attributes -> posted from action menu
if (isset($_POST['act']) && ($_POST['act'] != '')) {
$result['action'] = validate($_POST['act']);
}
// Filter POST with "listing_" attributes
foreach (array_keys($_POST) as $key) {
// Capture selections
......@@ -510,11 +515,6 @@ class managementListing
}
}
// Filter POST with "act" attributes -> posted from action menu
if (isset($_POST['act']) && ($_POST['act'] != '')) {
$result['action'] = validate($_POST['act']);
}
if (preg_match('/^([a-zA-Z\.]+)_([a-zA-Z_\.]+)$/', $result['action'], $m)) {
$result['action'] = $m[1];
$result['subaction'] = $m[2];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment