? Pending

User tests: Successful: Unsuccessful:

avatar chrisdavenport
chrisdavenport
13 Jun 2017

Summary of Changes

Currently the exception message for an invalid second argument in JForm::getInstance is not very helpful because it doesn't provide the name of the form that caused the exception. This PR replaces the unhelpful "name" with the actual name of the form in the exception message.

Testing Instructions

Write the following line of code somewhere convenient (eg. your template):

JForm::getInstance('myform', '');

Before applying this PR the exception message will be
JForm::getInstance(name, *string*)

After applying this PR the exception message will be
JForm::getInstance(myform, *string*)

Documentation Changes Required

None.

avatar chrisdavenport chrisdavenport - open - 13 Jun 2017
avatar chrisdavenport chrisdavenport - change - 13 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Jun 2017
Category Libraries
avatar laoneo
laoneo - comment - 13 Jun 2017

Hope it ends out better than #13050 ?

avatar dennisbuis dennisbuis - test_item - 19 Jun 2017 - Tested successfully
avatar dennisbuis
dennisbuis - comment - 19 Jun 2017

I have tested this item successfully on 1a85b4f

Could reproduce issue successfully

Applied patch with expected result


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

avatar anitabirdy anitabirdy - test_item - 19 Jun 2017 - Tested successfully
avatar anitabirdy
anitabirdy - comment - 19 Jun 2017

I have tested this item successfully on 1a85b4f

Reproduced the problem as stated and got the expected message after applying the patch.


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

avatar MarcelKooistra MarcelKooistra - test_item - 19 Jun 2017 - Tested successfully
avatar MarcelKooistra
MarcelKooistra - comment - 19 Jun 2017

I have tested this item successfully on 1a85b4f

Added JForm::getInstance('myform', ''); in Index.php
Reproduced error as described.
Applied patch
Issue solved as described.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16662.
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Jun 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jun 2017

RTC after two successful tests.

avatar rdeutz rdeutz - change - 21 Jun 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-06-21 18:31:08
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 21 Jun 2017
avatar rdeutz rdeutz - merge - 21 Jun 2017

Add a Comment

Login with GitHub to post a comment