Skip to content

Commit

Permalink
Merge pull request #15239 from demeritcowboy/fix-pptx-upgrade-task
Browse files Browse the repository at this point in the history
dev/core#1190 - typo in original version of upgrade function
  • Loading branch information
eileenmcnaughton authored Sep 7, 2019
2 parents dc5fb9a + 0960d3e commit d004755
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions CRM/Upgrade/Incremental/php/FiveSeventeen.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,24 @@ public function upgrade_5_17_alpha1($rev) {
$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;
}
Expand Down

0 comments on commit d004755

Please sign in to comment.