Ejegg has uploaded a new change for review. https://gerrit.wikimedia.org/r/267707
Change subject: Ensure 'Gateway' option value exists ...................................................................... Ensure 'Gateway' option value exists Doesn't exist in dev instances. wmf_civicrm_create_option_values checks to see if the value is present and will not duplicate it if so. Change-Id: Ibf9fbaeb867edca3b58784eafa8453206fa2f2ec --- M sites/all/modules/wmf_civicrm/wmf_civicrm.install 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm refs/changes/07/267707/1 diff --git a/sites/all/modules/wmf_civicrm/wmf_civicrm.install b/sites/all/modules/wmf_civicrm/wmf_civicrm.install index 3180053..5f55980 100644 --- a/sites/all/modules/wmf_civicrm/wmf_civicrm.install +++ b/sites/all/modules/wmf_civicrm/wmf_civicrm.install @@ -1545,6 +1545,8 @@ */ function wmf_civicrm_update_7065() { civicrm_initialize(); + // Ensure that 'Gateway' option exists. Will be a no-op if it's already there. + wmf_civicrm_create_option_values( 'payment_instrument', array( 'Gateway' ) ); $paymentInstruments = civicrm_api3('Contribution', 'getoptions', array('field' => 'payment_instrument_id')); $defaultPaymentInstrument = array_search('Gateway', $paymentInstruments['values']); CRM_Core_DAO::executeQuery( -- To view, visit https://gerrit.wikimedia.org/r/267707 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibf9fbaeb867edca3b58784eafa8453206fa2f2ec Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/fundraising/crm Gerrit-Branch: master Gerrit-Owner: Ejegg <eeggles...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits