? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
24 Jun 2017

Pull Request for Issue #16854

Summary of Changes

hiddenFieldsets & configFieldsets needs to be defined in any case

Testing Instructions

<?php $this->set('show_options', 0) ?>
<?php echo JLayoutHelper::render('joomla.edit.params', $this); ?>

Expected result

No error

Actual result

see #16854

Documentation Changes Required

none

please test @asika32764

avatar zero-24 zero-24 - open - 24 Jun 2017
avatar zero-24 zero-24 - change - 24 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jun 2017
Category Layout
avatar asika32764
asika32764 - comment - 24 Jun 2017

Another error message if we didn't set hiddenFieldsets in view.

Notice: Undefined property: ContentViewArticle::$hiddenFieldsets

Maybe use this?

$hiddenFieldsets = $displayData->get('hiddenFieldsets') ?: array();

Or

!empty($displayData->hiddenFieldsets) ? $displayData->hiddenFieldsets : array()
avatar zero-24 zero-24 - change - 24 Jun 2017
Labels Added: ?
avatar zero-24
zero-24 - comment - 24 Jun 2017

pushed

avatar asika32764
asika32764 - comment - 24 Jun 2017

Fixed ?

avatar richard67
richard67 - comment - 25 Jun 2017

@asika32764 Please mark your test result as success by using the "Test this" button here: https://issues.joomla.org/tracker/joomla-cms/16856


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16856.

avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 25 Jun 2017 - asika32764: Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Jun 2017

altered test successfully by @asika32764 in Issue Tracker.

avatar asika32764 asika32764 - test_item - 25 Jun 2017 - Tested successfully
avatar asika32764
asika32764 - comment - 25 Jun 2017

I have tested this item successfully on ba91e12


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16856.

avatar zero-24 zero-24 - change - 11 Jul 2017
The description was changed
avatar zero-24 zero-24 - edited - 11 Jul 2017
avatar zero-24
zero-24 - comment - 13 Aug 2017

Would be great to get another tester here?

avatar brianteeman
brianteeman - comment - 8 May 2018

@zero-24 I have tried to replicate the error message and can't

avatar zero-24
zero-24 - comment - 9 May 2018

How did you tested it?

Testing Instructions

Place this code

<?php $this->set('ignore_fieldsets', false); ?>
<?php $this->set('show_options', 0) ?>
<?php echo JLayoutHelper::render('joomla.edit.params', $this); ?>

enable the debugger and set a break point here:
https://github.com/joomla/joomla-cms/blob/staging/layouts/joomla/edit/params.php#L57

Run the code (login and try to edit an article).
Notice that the variable $hiddenFieldsets is not instanciated.
apply this patch
try again

This does not throw a hard error but it is a bug that this patch is going to fix ;)

avatar brianteeman
brianteeman - comment - 10 May 2018

i tested it from the limited information available in the initial post. still not clear if this is frontend or backend or both

avatar asika32764
asika32764 - comment - 10 May 2018

This issue is at the backend edit page if we use custom fields. It will not shows fatal error but notice message if we set error_reporting to development.

avatar Quy
Quy - comment - 10 May 2018

I have tested this item successfully on 1e8529d

Open \components\com_content\views\form\tmpl\edit.php
Add <?php $this->set('show_options', 0); ?> on line 102.
Edit an article on the frontend.

Without PR:

Notice: Undefined variable: hiddenFieldsets in \layouts\joomla\edit\params.php on line 57

Warning: in_array() expects parameter 2 to be array, null given in \layouts\joomla\edit\params.php on line 57

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16856.
avatar Quy Quy - test_item - 10 May 2018 - Tested successfully
avatar Quy Quy - change - 10 May 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 10 May 2018

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16856.

avatar Quy Quy - alter_testresult - 10 May 2018 - asika32764: Tested successfully
avatar mbabker mbabker - change - 12 May 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-05-12 17:23:34
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 12 May 2018
avatar mbabker mbabker - merge - 12 May 2018

Add a Comment

Login with GitHub to post a comment