joomlamate
Member
Hmm - well related or even similar to this old issue/discussion I had 1 year ago: https://fabrikar.com/forums/index.p...back-to-the-details-layout.49381/#post-258225
For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
Please see our announcement here.
@troester
Any ideas? Actually what IP I need to enter in the Local IP setting of the Allow PDF Localhost thing? And any ideas where this is happening in the code to go and investigate it?
Does the mail PDF Attachment get generated after a CURL call?
public function render()
{
$profiler = JProfiler::getInstance('Application');
JDEBUG ? $profiler->mark('formmodel render: start') : null;
// $$$rob required in paolo's site when rendering modules with ajax option turned on
$this->listModel = null;
$this->setRowId($this->getRowId());
/*
* $$$ hugh - need to call this here as we set $this->editable here, which is needed by some plugins
* hmmmm, this means that getData() is being called from checkAccessFromListSettings(),
* so plugins running onBeforeLoad will have to unset($formModel->_data) if they want to
* do something funky like change the rowid being loaded. Not a huge problem, but caught me out
* when a custom PHP onBeforeLoad plugin I'd written for a client suddenly broke.
*/
$this->checkAccessFromListSettings();
public function getListModel()
{
if (!isset($this->listModel))
{
$this->listModel = JModelLegacy::getInstance('List', 'FabrikFEModel');
$item = $this->getForm();
$this->listModel->loadFromFormId($item->id);
$this->listModel->setFormModel($this);
}
return $this->listModel;
}
$listModel = $this->getListModel();
// Bypass details view ACL for Local PDF
if ($this->app->input->get('format', 'html') === 'pdf')
{
$config = JComponentHelper::getParams('com_fabrik');
if ($config->get('allow_pdf_localhost_view', '0') === '1')
$listModel->setLocalPdf();
}
if (in_array($_SERVER['REMOTE_ADDR'], $whitelist ) || in_array($_SERVER['SERVER_ADDR'], $whitelist) ) {
$allowPDF = true;
}
Hmm, no, that's what I tried. But then any call via URL with format=pdf&rowid=X would create a PDF (so nearly the same as setting list view record access to public).in_array($_SERVER['SERVER_ADDR'], $whitelist
public function render()
{
$profiler = JProfiler::getInstance('Application');
JDEBUG ? $profiler->mark('formmodel render: start') : null;
// $$$rob required in paolo's site when rendering modules with ajax option turned on
if ($this->app->input->get('format', 'html') !== 'pdf') {
$this->listModel = null;
}
// .....