Bug: groupedlist not working #467

Closed
opened 2019-08-23 16:56:37 +00:00 by Manfred · 1 comment
Member

Steps to reproduce the issue

Use of a groupedlist with default options in an admin view

Expected result

Component should compile without errors

Actual result

Compile fails with error in line 1803 of file c_field.php in helpers/Compiler

This line

$groupOptionXML = $groupXML->fieldXML->addChild('option');

returns a NULL!

That seems a little bit odd as debugging shows that $groupXML and fieldXML are set to SimpleXML element

System information (as much as possible)

  • OS Name & Version: Windows 10
  • MySql Version: MariaDB 10
  • Apache Version: WAMPP stack
  • PHP Version: 7.2.20
  • Joomla Version: 3.9.11
  • JCB Version: 2.10.0
  • Browser: Firefox

Additional comments

### Steps to reproduce the issue Use of a groupedlist with default options in an admin view ### Expected result Component should compile without errors ### Actual result Compile fails with error in line 1803 of file c_field.php in helpers/Compiler This line $groupOptionXML = $groupXML->fieldXML->addChild('option'); returns a NULL! That seems a little bit odd as debugging shows that $groupXML and fieldXML are set to SimpleXML element ### System information (as much as possible) - OS Name & Version: Windows 10 - MySql Version: MariaDB 10 - Apache Version: WAMPP stack - PHP Version: 7.2.20 - Joomla Version: 3.9.11 - JCB Version: 2.10.0 - Browser: Firefox ### Additional comments
Author
Member

The ->fieldXML-> is wrong in line 1803.

$groupOptionXML = $groupXML->addChild('option');

is working!

The ->fieldXML-> is wrong in line 1803. $groupOptionXML = $groupXML->addChild('option'); is working!
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#467
No description provided.