Getting notices on group form display

skyrun

Active Member
https://testlocation.skyrun.com/index.php?option=com_fabrik&view=form&formid=138&rowid=4248

Seems to work if i suppress the notices. and the cascading dropdown is pre-populating now (another ticket) so thanks! not sure if fixing that caused this or not.

this is test data, so you can change and add and remove groups if you like. if you press save, you can use the same url to get back to the form or search (probably best)
or use arrival date 11/25/17 and any email or phone number you have put on the search form which is a front-end form to find and display a reservation.
 
Wow, that was interesting. I learn something new about PHP every day.

I managed to replicate this here - it was happening with non-repeat groups with >1 columns. But just couldn't figure it out in the debugger - the code looked like it was definitely passing an int into getGridSpan(), which was correctly figuring out the span size, but still barfing about "mujst be int or string".

Long story short, no ... it wasn't passing an int, because we passed it the result of floor(12 / $colCount), to get the span width from the col count ... and even though floor() always returns a whole integer (that's the point of it), apparently it returns it as a floating point number instead of an actual integer. And you can't use float to index arrays.

Anyway. Fixed as of:

https://github.com/Fabrik/fabrik/commit/348d54e5236302b664159486f2713ea50858c2d7

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top