Skip to content

Commit

Permalink
ArrayDatasource: Make it cloning itself when creating a new query
Browse files Browse the repository at this point in the history
Quickfix only. The actual issue is that the datasource caches indifferently
the result of the first evaluated query. This should be done by the query.
  • Loading branch information
Johannes Meyer committed Sep 28, 2015
1 parent ee7e7a1 commit 7a8ac97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Data/DataArray/ArrayDatasource.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getKeyColumn()
*/
public function select()
{
return new SimpleQuery($this);
return new SimpleQuery(clone $this);
}

/**
Expand Down

0 comments on commit 7a8ac97

Please sign in to comment.