From 335ae19ce4bbd93f7bcb4c548f0253ce700b8027 Mon Sep 17 00:00:00 2001 From: Hugh Messenger Date: Fri, 13 Apr 2018 14:19:26 -0500 Subject: [PATCH] Handle database prefix in replaceWithRowData --- components/com_fabrik/models/list.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/com_fabrik/models/list.php b/components/com_fabrik/models/list.php index f4eb5dcf929..2c8a775d6e5 100644 --- a/components/com_fabrik/models/list.php +++ b/components/com_fabrik/models/list.php @@ -9219,6 +9219,10 @@ private function replaceWithRowData($matches) return $match; } + $config = JFactory::getConfig(); + $prefix = $config->get('dbprefix'); + $match = str_replace('#__', $prefix, $match); + /* strip the {} */ $match = JString::substr($match, 1, JString::strlen($match) - 2);