diff --git a/include/management/class_managementListing.inc b/include/management/class_managementListing.inc index 5c3dce60dd69faf0c3726faab7992e3ec9729313..4bbe62d5ac21d5b50431c53bc59b637817863b61 100644 --- a/include/management/class_managementListing.inc +++ b/include/management/class_managementListing.inc @@ -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];