unclecheese / KickAssets

The KickAssets module for SilverStripe is an alternative to AssetAdmin
http://www.leftandmain.com
40 stars 8 forks source link

MultipleFileAttachmentField problem when attaching multiple images to an object. #24

Closed micahsheets closed 12 years ago

micahsheets commented 12 years ago

Added code to function refresh() in MultipleFileAttachmentField.php to fix problem when a coma is put in the front of the string when implode is run on $ids. Uses a regular express that should leave things along if there is no preceding coma. The coma breaks the sql if left in.

micahsheets commented 12 years ago

I have added many many sortable functionality to the MultiFileAttachmentField. This updates includes two new files and edits to the MultiFileAttachmentField.php and the template file.

unclecheese commented 12 years ago

Thanks, Micah. This is a great feature!