Skip to content

Notice when JModelList call getFilterForm before populating model state #10416

@Devportobello

Description

@Devportobello

Steps to reproduce the issue

Edit file: https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/views/articles/view.html.php#L43
Move $this->filterForm = $this->get('FilterForm');
before $this->items = $this->get('Items');

Administrator side:
Configuration > Error Reporting: System default or Maximum or Development
Then Articles listing

Will throw:
Notice: Undefined property: JObject::$list.direction in PathTo\Joomla_3_5_1\libraries\legacy\model\list.php on line 453
Notice: Undefined property: JObject::$list.limit in PathTo\Joomla_3_5_1\libraries\legacy\model\list.php on line 454
Notice: Undefined property: JObject::$list.ordering in PathTo\Joomla_3_5_1\libraries\legacy\model\list.php on line 455
Notice: Undefined property: JObject::$list.start in PathTo\Joomla_3_5_1\libraries\legacy\model\list.php on line 456

System information (as much as possible)

Joomla 3.5.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions