Skip to content

Commit

Permalink
Merge pull request #42 from micmania1/patch-1
Browse files Browse the repository at this point in the history
FIX VersionedFileUploadField::create() conflicts with other modules
  • Loading branch information
nyeholt committed Oct 23, 2014
2 parents a81f971 + 16807c2 commit c4181d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/VersionedFileExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function updateCMSFields(FieldList $fields) {
if(!$this->owner->canEdit()) return;

$folder = $this->owner->Parent();
$uploadField = VersionedFileUploadField::create('ReplacementFile', '');
$uploadField = new VersionedFileUploadField('ReplacementFile', '');
$uploadField->setConfig('previewMaxWidth', 40);
$uploadField->setConfig('previewMaxHeight', 30);
$uploadField->setConfig('allowedMaxFileNumber', 1);
Expand Down

0 comments on commit c4181d7

Please sign in to comment.