Bug #12694
closed
PHP error when clicking Delete on Outbound NAT with no rules selected
Added by Renato Botelho almost 3 years ago.
Updated almost 3 years ago.
Plus Target Version:
22.01
Description
After pressing Delete button without selecting any NAT rule I got a PHP crash as follow:
PHP Errors:
[18-Jan-2022 10:53:05 America/Sao_Paulo] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pfSense/include/www/firewall_nat_out.inc on line 496
- Assignee set to Jim Pingle
- Subject changed from Outbound NAT: Error when press delete button without select rules to PHP error when clicking Delete on Outbound NAT with no rules selected
- Status changed from New to In Progress
- Status changed from In Progress to Pull Request Review
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
Tested on:
2.6.0-RC (amd64)
built on Mon Jan 17 23:21:01 UTC 2022
FreeBSD 12.3-STABLE
I was able to replicate the issue.
With the patch installed, it's gone. The ticket can be resolved.
- Status changed from Feedback to Resolved
Same here. No more PHP error when attempting to reproduce the problem. Selecting and deleting items still works as expected.
Also available in: Atom
PDF