-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed uninitialized value warning in AdminSystemMaintenance. #298
Fixed uninitialized value warning in AdminSystemMaintenance. #298
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tipue-dev ,
thanks for your PR.
I have a few change requests here.
We should grab the param only once, at the beginning of the function
Also check these lines:
https://github.com/znuny/Znuny/blob/dev/Kernel/Modules/AdminSystemMaintenance.pm#L487
https://github.com/znuny/Znuny/blob/dev/Kernel/Modules/AdminSystemMaintenance.pm#L492
Regards 🚀
…com/tipue-dev/Znuny into dev-maintenance_uninitialized_value
Proposed change
Clicking on a link to edit a AdminSystemMaintenance-Entry logs a warning because there is no
Notification
parameter given yetAction=AdminSystemMaintenance;Subaction=SystemMaintenanceEdit;SystemMaintenanceID=1
Type of change
1 - 🐞 bug 🐞
Breaking change
Additional information
Checklist