Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Save default DownloadBehaviour on a DMSDocument when initially uploading a new one #214
I needed to change the default to be "open" rather than "download". I set this
but noticed that when uploading new documents the default state from the enum of the field was written rather than the default option set in my config. I added code in onBeforeWrite to write the default if set.
Correct. When adding a document in the "Documents" tab on a page, the value that always gets set by default is the default value of the enum
The check of the config option only occurs when viewing the document after upload. I tested this on 2.2.0 and 1.x.