Problem/Motivation

Problems with the sort widgets configuration

Steps to reproduce

When trying to manage sort widget.

Proposed resolution

Need to check for empty array or objects.

Comments

sundeep88 created an issue. See original summary.

sundeep88’s picture

StatusFileSize
new697 bytes
peri22’s picture

I confirmed this on 1.x HEAD. The same line causes this and #3488348: Sort weight is not respected.

  • The bug: for a display whose widget config has just been created, the sorts setting is NULL, and uasort() expects an array — so opening the manage form the first time is a fatal error.
  • The fix: MR !6 in #3488348: Sort weight is not respected replaces that call with a null-safe sort on the fields.

I verified both states: the form crashes before the MR and builds fine after it.

peri22’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

peri22’s picture

Fixed by the same change, committed in #3488348: Sort weight is not respected.