I get these 2 errors in the php error log file when using the inlineedit plugin on a list.
The offending code (one of 4) is...
$html[] = FabrikHelperHTML::image('delete.png', 'list', @$this->tmpl, array('alt' => FText::_('COM_FABRIK_CANCEL')));
The error occurs when $this->tmpl is undefined.
To fix it, I set a variable to be used instead of $this->tmpl - based on whether $this->tmpl is defined.
I haven't used github in so long, I don't have any idea how to change it there.
But here's the fix, if someone would PLEASE fix it at github?...
Add the line...
$thistmpl = isset($this->tmpl) ? $this->tmpl : '';
twice - at line 122 and line 178 (just above the if() condition that contains the offending @$this->tmpl code).
Then replace all (4) instances of @$this->tmpl with $thistmpl.
Finally, inlineedit works like charm.
- 'Undefined property: FabrikFEModelFormInlineEdit::$tmpl' at /home/public_html/components/com_fabrik/models/forminlineedit.php 130:
- 'Undefined property: FabrikFEModelFormInlineEdit::$tmpl' at /home/public_html/components/com_fabrik/models/forminlineedit.php 137:
The offending code (one of 4) is...
$html[] = FabrikHelperHTML::image('delete.png', 'list', @$this->tmpl, array('alt' => FText::_('COM_FABRIK_CANCEL')));
The error occurs when $this->tmpl is undefined.
To fix it, I set a variable to be used instead of $this->tmpl - based on whether $this->tmpl is defined.
I haven't used github in so long, I don't have any idea how to change it there.
But here's the fix, if someone would PLEASE fix it at github?...
Add the line...
$thistmpl = isset($this->tmpl) ? $this->tmpl : '';
twice - at line 122 and line 178 (just above the if() condition that contains the offending @$this->tmpl code).
Then replace all (4) instances of @$this->tmpl with $thistmpl.
Finally, inlineedit works like charm.
Last edited: