Commit 4d3f92f4 authored by jaapjansma's avatar jaapjansma
Browse files

update

parent 4582c720
......@@ -43,6 +43,18 @@ class CRM_Barnekreftbanking_Upgrader extends CRM_Barnekreftbanking_Upgrader_Base
'is_default' => 0
));
}
try {
$result = civicrm_api3('OptionValue', 'getsingle', array('name' => 'NBAN_NO', 'option_group_id' => 'civicrm_banking.reference_types'));
} catch (Exception $e) {
// Add the NBAN_NO bank account type
civicrm_api3('OptionValue', 'create', [
'option_group_id' => 'civicrm_banking.reference_types',
'name' => 'NBAN_NO',
'label' => E::ts('Norwegian Bank Account Number'),
'value' => 'NBAN_NO',
]);
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment