Closed LukeStorry closed 2 years ago
Fix would be around line 180 of src/site/views/event/tmpl/default.php
Currently if ($person['Details'] == "{\"addons\":[]}")
removes the entry for events with no addons, but cases where no addons are bought, or the string is different, failsafes to showing as above screenshot.
Parsing the $person['Details']
JSON string to a PHP obj seems very sensible.
I know you said that in the original PR, and now i agree!
Iterating through each item in the addons part of that obj to check qty==0
seems to be the best option
The details column should be cleaned up by parsing the string into json then iterating through addons and checking quantity, to prevent this:
Ensuring that changes to the format of the details string still results in addons being shown in the table is important however.