[MGNLDAM-480] FileDownloadList: When choosing a Folder instead of a Asset, commit action fails Created: 08/Jul/14 Updated: 07/Aug/14 Resolved: 07/Aug/14 |
|
| Status: | Closed |
| Project: | Magnolia DAM Module |
| Component/s: | DAM App |
| Affects Version/s: | 2.0 |
| Fix Version/s: | 2.0.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Tom Wespi | Assignee: | Eric Hechinger |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | quickwin, support | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Template: |
|
||||
| Acceptance criteria: |
Empty
|
||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||
| Date of First Response: | |||||
| Description |
|
In the dialog class info.magnolia.ui.form.field.definition.LinkFieldDefinition the info.magnolia.dam.app.ui.field.DamFilePreviewComponent throws an error when choose a folder instead of an asset. To reproduce: http://demoauthor.magnolia-cms.com -> choose File Download List -> Choose a folder This was working till the version 2.0 / 5.3 |
| Comments |
| Comment by Eric Hechinger [ 17/Jul/14 ] |
|
Quick fix: |
| Comment by Eric Hechinger [ 06/Aug/14 ] |
|
Nice but did not solve the issue.
Really, the simplest solution is to remove the node contentPreviewDefinition from /modules/standard-templating-kit/dialogs/components/content/stkDownloadList/form/tabs/tabQuery/fields/link by adding a STK MVH task... In addition if you want to introduce such a restriction, it may be configurable in order to allow selection folders (that is the case in several of our components) |