Skip to content

Entry Manager and Column Expectations #4847

@eric-lamb62

Description

@eric-lamb62

Description of the problem

If a user sets their Column grouping within the Entry Manager to a grouping that does NOT include a Column that can be sorted/ordered, a fatal PHP error is thrown and the Entry Manager becomes unusable for said member.

Image

Further, a PHP notice gets thrown if the above since it's assumed the entry_id key would exist. I does not.

This happens across PHP and MySQL versions and has no bearing on output.

How To Reproduce
Steps to reproduce the behavior:

  1. Within a Channel Entry List
  2. Deselect all checked columns except Categories
  3. Refresh the page
  4. page borks

Error Messages


Call to a member function getEntryManagerColumnSortField() on null
Edit.php:167

Possible Solution
Checking for the existing and instanceof said variable

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions