Skip to content

Commit

Permalink
Merge pull request #669 from demeritcowboy/array
Browse files Browse the repository at this point in the history
Views notice fix. Remove duplicate call to constructor.
  • Loading branch information
seamuslee001 authored Sep 8, 2023
2 parents 0e30129 + 8f74980 commit 1d0bbd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class civicrm_handler_field_pseudo_constant extends views_handler_field {
public $_pseudo_constant;

public function construct() {
parent::construct();
parent::construct();
if (!civicrm_initialize() ||
!isset($this->definition['pseudo class']) ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class civicrm_handler_filter_pseudo_constant extends views_handler_filter_in_ope
$callback = $this->definition['pseudo class'] . "::" . $this->definition['pseudo method'];
if (is_callable($callback)) {
$this->_pseudo_constant = call_user_func_array($callback, $pseudo_args);
if ($this->_pseudo_constant === FALSE) {
$this->_pseudo_constant = [];
}
// Do we really need to resolve this during `construct()`ion? There's on-demand caching in `get_value_options()`.
}
else {
Expand Down

0 comments on commit 1d0bbd8

Please sign in to comment.