? ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
20 Mar 2017

Pull Request for Issue #14609.

Summary of Changes

Encodes the value for the list options.

Testing Instructions

  • Create a list custom field.
  • Add an option with the text Test and the value test&demo.
  • Add an option with the text Test1 and the value test.
  • Edit an article.

Expected result

No error message is shown.

Actual result

An error is shown:
Warning: DOMElement::__construct(): unterminated entity reference b in //joomla-cms/administrator/components/com_fields/libraries/fieldslistplugin.php on line 44

avatar laoneo laoneo - open - 20 Mar 2017
avatar laoneo laoneo - change - 20 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Mar 2017
Category Administration com_fields
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 20 Mar 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Mar 2017

I have tested this item successfully on 9c7539d

works also without PR.


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

avatar Quy
Quy - comment - 20 Mar 2017

Fails with R&B for the Text and Value.

Warning: FieldsListPlugin::onCustomFieldsPrepareDom(): unterminated entity reference B in C:\xampp\htdocs\joomla-cms-staging\administrator\components\com_fields\libraries\fieldslistplugin.php on line 45

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Mar 2017

@Quy do you use latest staging? i test for Text and Value "r&b" and works.

avatar Quy
Quy - comment - 20 Mar 2017

Using the latest staging version from today.

list

avatar yvesh
yvesh - comment - 20 Mar 2017

Yep same for me, not working.. @laoneo

( ! ) Warning: FieldsListPlugin::onCustomFieldsPrepareDom(): unterminated entity reference b in /administrator/components/com_fields/libraries/fieldslistplugin.php on line 45

@franz-wohlkoenig did you test the article edit after you set up the field?

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 20 Mar 2017 - Tested unsuccessfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Mar 2017

I have tested this item ? unsuccessfully on 9c7539d

(forgot to set Error Reporting on Maximum):

Warning is shown with an & or not in Field.


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

avatar laoneo laoneo - change - 20 Mar 2017
Labels Added: ?
avatar laoneo
laoneo - comment - 20 Mar 2017

True, nodeValue does also need to be encoded.

avatar laoneo
laoneo - comment - 20 Mar 2017

@Quy when you have tested it successfully, can you mark it here https://issues.joomla.org/tracker/joomla-cms/14797. Thanks.

avatar Quy Quy - test_item - 20 Mar 2017 - Tested successfully
avatar Quy
Quy - comment - 20 Mar 2017

I have tested this item successfully on e4d4536


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 20 Mar 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Mar 2017

I have tested this item successfully on e4d4536


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Mar 2017

RTC as there are 2 successfully Tests?

avatar jeckodevelopment jeckodevelopment - change - 21 Mar 2017
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 21 Mar 2017

RTC


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

avatar rdeutz rdeutz - change - 21 Mar 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-03-21 18:35:38
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 21 Mar 2017
avatar rdeutz rdeutz - merge - 21 Mar 2017

Add a Comment

Login with GitHub to post a comment