Skip to content
Snippets Groups Projects
Commit dff3610c authored by jaapjansma's avatar jaapjansma
Browse files

Issue #11

parents 40081d64 3b61e487
No related branches found
No related tags found
No related merge requests found
# Version 1.0.2
* Fixed bug #11 (Fatal error clone on non object)
# Version 1.0.1
Initial release.
\ No newline at end of file
......@@ -39,6 +39,13 @@ abstract class AbstractFieldFilterHandler extends AbstractFilterHandler {
if (!$this->dataSource) {
throw new DataSourceNotFoundException(E::ts("Filter %1 requires data source '%2' which could not be found. Did you rename or deleted the data source?", array(1=>$this->title, 2=>$datasource_name)));
}
if (!$this->dataSource->getAvailableFilterFields()->getFieldSpecificationByName($field_name)) {
throw new FieldNotFoundException(E::ts("Filter %1 requires a field with the name '%2' in the data source '%3'. Did you change the data source type?", array(
1 => $this->title,
2 => $field_name,
3 => $datasource_name
)));
}
$this->fieldSpecification = clone $this->dataSource->getAvailableFilterFields()->getFieldSpecificationByName($field_name);
if (!$this->fieldSpecification) {
throw new FieldNotFoundException(E::ts("Filter %1 requires a field with the name '%2' in the data source '%3'. Did you change the data source type?", array(
......
......@@ -14,9 +14,9 @@
<url desc="Documentation">https://lab.civicrm.org/extensions/dataprocessor/README.md</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2018-08-14</releaseDate>
<version>master</version>
<develStage>alpha</develStage>
<releaseDate>2019-07-15</releaseDate>
<version>1.0.x-dev</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
<ver>5.7</ver>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment