You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contao hands the prepared label fields to a label_callback as a fourth argument,
and its own callbacks declare them as required - "tl_member::addIcon()" is one of
several. We passed three, so every table carrying such a callback was fatal:
picking from tl_member or tl_calendar_events ended in an ArgumentCountError
instead of a list. Callbacks declaring only three parameters are unaffected; PHP
passes the surplus argument and they never look at it.
An array return value is now taken over whatever the list is grouped by. It was
tied to the table mode before, so everywhere else the callback ran and its
result was dropped.
Matching those returned fields by position stays limited to the table mode,
where both sides describe the same columns. Anywhere else they do not: a picker
shows the one property it was configured with, while a Contao callback counts
along its own "label/fields" - tl_member reserves the first of those for the
icon and would push that markup into the picker's only column, replacing the
very value one is meant to pick.
0 commit comments