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

Issue #11

parent 1a3f7870
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(
......
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