Skip to content

Commit

Permalink
Merge pull request #5861 from open-sausages/pulls/4.0/fix-uploadfield…
Browse files Browse the repository at this point in the history
…-buttons

BUG Fix `[buttons]` appearing instead of actual buttons when uploading files
  • Loading branch information
Hamish Friedlander committed Aug 2, 2016
2 parents 59bba54 + 12adba3 commit 76dd9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forms/UploadField.php
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ protected function encodeFileAttributes(AssetContainer $file) {
'edit_url' => $customised->UploadFieldEditLink,
'size' => $file->getAbsoluteSize(),
'type' => File::get_file_type($file->getFilename()),
'buttons' => $customised->UploadFieldFileButtons,
'buttons' => (string)$customised->UploadFieldFileButtons,
'fieldname' => $this->getName()
);
}
Expand Down

0 comments on commit 76dd9b3

Please sign in to comment.