Unknown function getdisplayfoldername
Closed this issue · 4 comments
hailwood commented
Not sure where it has come from, but when trying to select files from the cms we are getting a call to unknown function getdisplayfoldername.
This extension below fixes it for me but we might want to add the function to FileAttachmentField
.
class FileAttachmentFieldExtension extends Extension {
private static $allowed_actions = [
'getdisplayfoldername'
];
public function getdisplayfoldername() {
return $this->owner->getFolderName();
}
}
unclecheese commented
Pretty sure this is fixed in 1.1.1.
hailwood commented
@unclecheese That's the current version i'm using (it's pulled in via kickassets).
Looking at that commit,. seem that's not included in the 1.1.1 release?
unclecheese commented
OK, looks like it wasn't. Since this is a new feature, I've tagged it as 1.2, and updated KickAssets accordingly (3.1.1) to use Dropzone 1.2
hailwood commented
@unclecheese Cheers!