typo in original version of function
authorDemeritCowboy <demeritcowboy@hotmail.com>
Sat, 7 Sep 2019 12:14:50 +0000 (08:14 -0400)
committerDemeritCowboy <demeritcowboy@hotmail.com>
Sat, 7 Sep 2019 12:14:50 +0000 (08:14 -0400)
CRM/Upgrade/Incremental/php/FiveSeventeen.php

index 9f362989b5adc19cdebcc335f722f0ea2ffa01fc..82ed72d0becaa8798e908c612e696eb938154da9 100644 (file)
@@ -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;
   }