opendcim/openDCIM

CDU without panel poles set aren't displaying conncetions

wilpig opened this issue · 2 comments

          Just added a new CDU and resulted in this:

[Mon Feb 05 16:12:33.898620 2024] [php:error] [pid 22322] [] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + int in /srv/openDCIM/openDCIM-23.04/classes/PowerDistribution.class.php:634\nStack trace:\n#0 /srv/openDCIM/openDCIM-23.04/devices.php(2238): PowerDistribution->GetAllBreakerPoles()\n#1 {main}\n thrown in /srv/openDCIM/openDCIM-23.04/classes/PowerDistribution.class.php on line 634, referer: https://mydcim/power_panel.php?PanelID=1

Originally posted by @LFrank2021 in #1507 (comment)

fixed via 5840213

Thank you Wilbur, That totally worked!
PHP fix for CDU in DCIM