Update
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
Nampharm
|
||||
/-------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 1.0.0
|
||||
@build 28th June, 2024
|
||||
@version 1.0.1
|
||||
@build 20th August, 2024
|
||||
@created 24th May, 2024
|
||||
@package Subform Power
|
||||
@subpackage CurrenciesModel.php
|
||||
@@ -350,6 +350,16 @@ class CurrenciesModel extends ListModel
|
||||
{
|
||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||
}
|
||||
// Get global switch to activate text only export
|
||||
$export_text_only = ComponentHelper::getParams('com_subformpower')->get('export_text_only', 0);
|
||||
// Add these queries only if text only is required
|
||||
if ($export_text_only)
|
||||
{
|
||||
|
||||
// From the subformpower_country table.
|
||||
$query->select($db->quoteName(['g.name','g.id'],['country','country_id']));
|
||||
$query->join('LEFT', $db->quoteName('#__subformpower_country', 'g') . ' ON (' . $db->quoteName('a.country') . ' = ' . $db->quoteName('g.guid') . ')');
|
||||
}
|
||||
// Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_subformpower'))
|
||||
{
|
||||
|
Reference in New Issue
Block a user