diff --git a/code/cms/DMSUploadField.php b/code/cms/DMSUploadField.php index ccdde6e..8fd8366 100644 --- a/code/cms/DMSUploadField.php +++ b/code/cms/DMSUploadField.php @@ -111,6 +111,10 @@ class DMSUploadField extends UploadField { // Attach the file to the related record. $document = $this->attachFile($file); + + //TODO: both $document->UploadFieldThumbnailURL and $document->UploadFieldFileButtons are null, + // check the code from UploadField.php where they use $file->UploadFieldThumbnailURL and $file->UploadFieldFileButtons + // and $file is_a File but in our case $document is a Document, that is why it doesn't work. // Collect all output data. $return = array_merge($return, array( diff --git a/images/app_icons/audio_32.gif b/images/app_icons/audio_32.gif new file mode 100644 index 0000000..b22798b Binary files /dev/null and b/images/app_icons/audio_32.gif differ diff --git a/images/app_icons/doc_32.gif b/images/app_icons/doc_32.gif new file mode 100644 index 0000000..503c626 Binary files /dev/null and b/images/app_icons/doc_32.gif differ diff --git a/images/app_icons/generic_32.gif b/images/app_icons/generic_32.gif new file mode 100644 index 0000000..d28fd51 Binary files /dev/null and b/images/app_icons/generic_32.gif differ diff --git a/images/app_icons/image_32.gif b/images/app_icons/image_32.gif new file mode 100644 index 0000000..1cc0b91 Binary files /dev/null and b/images/app_icons/image_32.gif differ diff --git a/images/app_icons/mov_32.gif b/images/app_icons/mov_32.gif new file mode 100644 index 0000000..d2ca999 Binary files /dev/null and b/images/app_icons/mov_32.gif differ diff --git a/images/app_icons/pdf_32.gif b/images/app_icons/pdf_32.gif new file mode 100644 index 0000000..3518a4d Binary files /dev/null and b/images/app_icons/pdf_32.gif differ diff --git a/images/app_icons/xls_32.gif b/images/app_icons/xls_32.gif new file mode 100644 index 0000000..6019a77 Binary files /dev/null and b/images/app_icons/xls_32.gif differ diff --git a/images/app_icons/zip_32.gif b/images/app_icons/zip_32.gif new file mode 100644 index 0000000..033974f Binary files /dev/null and b/images/app_icons/zip_32.gif differ