Skip to content

Commit

Permalink
Fix upgrade error with unknown column in option_value table
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Dec 15, 2016
1 parent 0b4d420 commit d7f030c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Core/BAO/OptionValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ public static function ensureOptionValueExists($params) {
$existingValues = civicrm_api3('OptionValue', 'get', array(
'option_group_id' => $params['option_group_id'],
'name' => $params['name'],
'return' => 'id',
));
if (!$existingValues['count']) {
civicrm_api3('OptionValue', 'create', $params);
Expand Down

0 comments on commit d7f030c

Please sign in to comment.