Ejegg has submitted this change and it was merged.
Change subject: Fix e-Notice due to some Option Values not having the 'name'
field filled in.
......................................................................
Fix e-Notice due to some Option Values not having the 'name' field filled in.
Bug: T127029
Change-Id: I91b20869da0236fd3aaeb7ac726c68490cc8cd32
---
M sites/all/modules/wmf_civicrm/wmf_civicrm.install
1 file changed, 21 insertions(+), 0 deletions(-)
Approvals:
Ejegg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/sites/all/modules/wmf_civicrm/wmf_civicrm.install
b/sites/all/modules/wmf_civicrm/wmf_civicrm.install
index 2f9b093..fcf45ef 100644
--- a/sites/all/modules/wmf_civicrm/wmf_civicrm.install
+++ b/sites/all/modules/wmf_civicrm/wmf_civicrm.install
@@ -50,6 +50,7 @@
wmf_civicrm_update_7110();
wmf_civicrm_update_7120();
wmf_civicrm_update_7170();
+ wmf_civicrm_update_7180();
}
/**
@@ -1864,3 +1865,23 @@
WHERE name in ('Refund', 'Chargeback')
");
}
+
+/**
+ * Fix e-Notice due to some Option Values not having the 'name' field filled
in.
+ *
+ * This is just an e-notice visible in the jenkins log. It appears to do no
harm
+ * other than having caused me to investigate it when checking the logs.
+ *
+ * T127029.
+ */
+function wmf_civicrm_update_7180() {
+ civicrm_initialize();
+ CRM_Core_DAO::executeQuery("
+ UPDATE civicrm_option_group g
+ LEFT JOIN civicrm_option_value v ON v.option_group_id = g.id
+ INNER JOIN civicrm_custom_field cf ON cf.option_group_id = g.id
+ SET v.name = REPLACE(v.value, ' ', '_')
+ WHERE
+ v.name IS NULL
+ ");
+}
--
To view, visit https://gerrit.wikimedia.org/r/271188
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I91b20869da0236fd3aaeb7ac726c68490cc8cd32
Gerrit-PatchSet: 6
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Eileen <[email protected]>
Gerrit-Reviewer: Awight <[email protected]>
Gerrit-Reviewer: Cdentinger <[email protected]>
Gerrit-Reviewer: Eileen <[email protected]>
Gerrit-Reviewer: Ejegg <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits