Skip to content

Fixing managers actions not taking action#6901

Merged
TheWitness merged 1 commit intoCacti:1.2.xfrom
TheWitness:managers_qa
Mar 28, 2026
Merged

Fixing managers actions not taking action#6901
TheWitness merged 1 commit intoCacti:1.2.xfrom
TheWitness:managers_qa

Conversation

@TheWitness
Copy link
Copy Markdown
Member

No description provided.

@TheWitness TheWitness merged commit cea6212 into Cacti:1.2.x Mar 28, 2026
6 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses SNMP Notification Receiver “actions” in managers.php so that bulk operations (delete/enable/disable) actually apply to the selected managers.

Changes:

  • Fixes the POST variable used to read the selected receiver IDs during bulk actions (selected_items vs an incorrect key).
  • Adjusts the post-action redirect target after applying receiver actions.
  • Minor formatting/whitespace cleanups in a few output blocks.

}

header('Location: managers.php?header=false');
header('Location: managers.php');
Copy link

Copilot AI Mar 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This redirect drops the header=false suppression even though the form submission is AJAXified by form_end() (it always posts to ...&header=false). Following the redirect will therefore fetch the full page chrome unnecessarily and is inconsistent with other redirects in this file (e.g. form_save() and the no-selection branch). Consider redirecting to managers.php?header=false (or using appendHeaderSuppression()) to keep the response lightweight and consistent for in-console navigation.

Suggested change
header('Location: managers.php');
header('Location: managers.php?header=false');

Copilot uses AI. Check for mistakes.
@TheWitness TheWitness deleted the managers_qa branch March 30, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants