? Success

User tests: Successful: Unsuccessful:

avatar garima-agal
garima-agal
30 Sep 2014

Protected variable is not defined with starting as '_'(underscore), so it is not filtering out afterwards in getPropeties function and creating fatal error issue that trying to access protected function.
For example. If we call getProperties function on Jtable and apply loop on that, then jsonEncode variable also comes in that. And thus causing fatal error

$vars = $this->getTable()->getProperties(); // $this->getTable gives the instance of desired table which is extended with Jtable. $vars contain $jsonEncode variable also.
$retObj = new stdClass();

$table = $this->getTable();
$table->load(null);

foreach($vars as $key => $value) {

$retObj->$key = $table->$key;
}

avatar garima-agal garima-agal - open - 30 Sep 2014
avatar jissues-bot jissues-bot - change - 30 Sep 2014
Labels Added: ?
avatar wilsonge
wilsonge - comment - 1 Oct 2014

Thankyou for reporting this! Completely missed this in my pull request - I'm so sorry for any inconveniance caused! I'm gonna personally try and get this rushed into the 3.3.6 hotfix coming soon

avatar infograf768 infograf768 - change - 1 Oct 2014
Priority Medium Urgent
avatar garima-agal
garima-agal - comment - 1 Oct 2014

Welcome...:)
Hope to get this fix soon as we are recently facing issue in many of our component

avatar mbabker mbabker - close - 1 Oct 2014
avatar mbabker mbabker - change - 1 Oct 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-10-01 10:51:07
avatar Kubik-Rubik Kubik-Rubik - test_item - 1 Oct 2014 - Tested successfully

Add a Comment

Login with GitHub to post a comment