"Show category" set to "Hide"
"Show category" set to "Global"
PHP 7.1
Joomla 3.7.2
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?
Labels |
Added:
?
|
Category | ⇒ | Fields |
Status | New | ⇒ | Information Required |
This would happen if the
getItem()
does not have the property$this->item->params
converted to be an object (or an array) of the data for the parameterse.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 ?
Status | Information Required | ⇒ | Discussion |
Labels |
Added:
J3 Issue
|
Status | Discussion | ⇒ | Information Required |
@individual-it is this still occurring in the latest J3?
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: ? |
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.