From 08e0c674357269376920b68b2ca50e2e2226ede1 Mon Sep 17 00:00:00 2001 From: DemeritCowboy Date: Sat, 7 Sep 2019 08:14:50 -0400 Subject: [PATCH] typo in original version of function --- CRM/Upgrade/Incremental/php/FiveSeventeen.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/CRM/Upgrade/Incremental/php/FiveSeventeen.php b/CRM/Upgrade/Incremental/php/FiveSeventeen.php index 9f362989b5..82ed72d0be 100644 --- a/CRM/Upgrade/Incremental/php/FiveSeventeen.php +++ b/CRM/Upgrade/Incremental/php/FiveSeventeen.php @@ -105,13 +105,24 @@ class CRM_Upgrade_Incremental_php_FiveSeventeen extends CRM_Upgrade_Incremental_ $this->addTask(ts('Add pptx to accepted attachment file types'), 'updateFileTypes'); } + /** + * Upgrade function. + * + * @param string $rev + */ + public function upgrade_5_17_1($rev) { + // Need to do this again because the alpha1 version had a typo and so didn't do anything. + $this->addTask(ts('Add pptx to accepted attachment file types'), 'updateFileTypes'); + } + /** * Update safe file types. */ public function updateFileTypes() { CRM_Core_BAO_OptionValue::ensureOptionValueExists([ - 'safe_file_extension', - ['label' => 'pptx', 'name' => 'pptx'], + 'option_group_id' => 'safe_file_extension', + 'label' => 'pptx', + 'name' => 'pptx', ]); return TRUE; } -- 2.25.1