No Code Attached Yet J3 Issue
avatar individual-it
individual-it
15 Jun 2017

Steps to reproduce the issue

  1. download and install example component from here: https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_configuration
  2. edit one message
  3. set "Show category" to "Hide"
  4. save message
  5. open same message

Expected result

"Show category" set to "Hide"

Actual result

"Show category" set to "Global"

System information (as much as possible)

PHP 7.1
Joomla 3.7.2

Additional comments

the parameter is set correctly in the database
the whole problem seems to be that getFieldset() does retrieve the fields correctly but not the value, the value is always empty.
It works fine in Joomla 3.5
it works fine for items defined in <form><fieldset> in forms/xxxxx.xml but not for items defined in <form><fields name="params"><fieldset>

I stumbled over this issue in my own extension. Workaround for me to do a $field->setValue() before echo $field->input; but that is not a real fix, is it?

avatar individual-it individual-it - open - 15 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jun 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Jun 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 15 Jun 2017
Category Fields
avatar ghost
ghost - comment - 2 Sep 2017

couldn't find Component for Download at given Url.


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Sep 2017
Status New Information Required
avatar ggppdk
ggppdk - comment - 2 Sep 2017

This would happen if the

  • $this->item that JForm got by calling getItem() does not have the property
    $this->item->params converted to be an object (or an array) of the data for the parameters

e.g. it is still a JSON string, because maybe you deleted this part out of getItem ?

// Load the JSON string
$params = new JRegistry;
$params->loadString($this->item->params, 'JSON');
$this->item->params = $params;

about:

it works fine in Joomla 3.5

maybe in J3.5 if $this->item->params is a JSON string then it will be silently decode into an JRegistry object ?

avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Sep 2017
Status Information Required Discussion
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar jwaisner jwaisner - change - 11 Mar 2020
Status Discussion Information Required
avatar jwaisner
jwaisner - comment - 11 Mar 2020

@individual-it is this still occurring in the latest J3?

avatar alikon alikon - change - 8 Jan 2022
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2022-01-08 09:13:53
Closed_By alikon
Labels Added: No Code Attached Yet
Removed: ?
avatar alikon alikon - close - 8 Jan 2022

Add a Comment

Login with GitHub to post a comment