opendcim / openDCIM

An open source (GPL v3) Data Center Inventory Management (DCIM) application.
http://opendcim.org
305 stars 204 forks source link

CDU without panel poles set aren't displaying conncetions #1509

Closed wilpig closed 7 months ago

wilpig commented 7 months ago
          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 https://github.com/opendcim/openDCIM/issues/1507#issuecomment-1927227230

wilpig commented 7 months ago

fixed via 5840213fcbbbc5e897cf4f5614f1e20c965d92b1

cpbonamico commented 7 months ago

Thank you Wilbur, That totally worked!

PHP fix for CDU in DCIM