Skip to content

Commit

Permalink
Corrected memberAssociations() selection for null entry_ids. This fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewilkins committed Sep 22, 2016
1 parent 9baaf5f commit 0e08173
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ee2/third_party/vmg_chosen_member/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

if ( ! defined('VMG_CM_VERSION'))
{
define('VMG_CM_VERSION', '3.0.1');
define('VMG_CM_VERSION', '3.0.2');
}

/**
Expand Down
2 changes: 2 additions & 0 deletions ee2/third_party/vmg_chosen_member/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public function memberAssociations($entry_id = null, $field_id = null, $col_id =

if ( ! is_null($entry_id)) {
ee()->db->where('vcm.entry_id', $entry_id);
} else {
ee()->db->where('vcm.entry_id', 0);
}

// Make general restrictions for this particular field
Expand Down

0 comments on commit 0e08173

Please sign in to comment.