forked from joomla/Component-Builder
Fixed gh-402 so that the array_unique is only used on returned column (array)
This commit is contained in:
parent
781fb9162c
commit
ba3ceb998d
@ -146,7 +146,7 @@ TODO
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 2nd April, 2019
|
||||
+ *Last Build*: 4th April, 2019
|
||||
+ *Version*: 2.9.13
|
||||
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
|
@ -146,7 +146,7 @@ TODO
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 2nd April, 2019
|
||||
+ *Last Build*: 4th April, 2019
|
||||
+ *Version*: 2.9.13
|
||||
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
|
@ -10659,7 +10659,11 @@ class Interpretation extends Fields
|
||||
$function[] = $this->_t(3) . "//" . $this->setLine(__LINE__) . " get model";
|
||||
$function[] = $this->_t(3) . "\$model = \$this->getModel();";
|
||||
}
|
||||
$function[] = $this->_t(3) . "\$results = array_unique(\$results);";
|
||||
// check if usergroup as we change to an object query
|
||||
if ($filter['type'] !== 'usergroup')
|
||||
{
|
||||
$function[] = $this->_t(3) . "\$results = array_unique(\$results);";
|
||||
}
|
||||
$function[] = $this->_t(3) . "\$_filter = array();";
|
||||
$function[] = $this->_t(3) . "foreach (\$results as \$" . $filter['code'] . ")";
|
||||
$function[] = $this->_t(3) . "{";
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="component" version="3.2" method="upgrade">
|
||||
<name>COM_COMPONENTBUILDER</name>
|
||||
<creationDate>2nd April, 2019</creationDate>
|
||||
<creationDate>4th April, 2019</creationDate>
|
||||
<author>Llewellyn van der Merwe</author>
|
||||
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
||||
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user