User tests: Successful: Unsuccessful:
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;
}
Labels |
Added:
?
|
Priority | Medium | ⇒ | Urgent |
Welcome...:)
Hope to get this fix soon as we are recently facing issue in many of our component
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-01 10:51:07 |
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