[MGNLUI-3415] Sometimes only one item gets handed over to actions Created: 11/May/15 Updated: 06/Aug/15 Resolved: 26/May/15 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | actionbar |
| Affects Version/s: | 5.3.7 |
| Fix Version/s: | 5.3.10, 5.4.1 |
| Type: | Improvement | Priority: | Major |
| Reporter: | Daniel Lipp | Assignee: | Trang Truong |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 1d 1h | ||
| Original Estimate: | 1h | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Template: |
|
||||
| Patch included: |
Yes
|
||||
| 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)
|
||||
| Date of First Response: | |||||
| Description |
|
I have an action define like: public class MyAction extends AbstractAction<MyActionDefinition> { @Inject public MyAction(MyActionDefinition definition, List<FileItems> items, ...) { ... public MyAction(MyActionDefinition definition, FileItem item, ...) { ... If this action is called with multiple items (FileItems) selected, I sometimes only get one item handed over. Looks like the wrong constructor is considered. Looks like the following patch solves the issue: https://gist.github.com/mkgl/d4f329d0961c7ec78c65 |
| Comments |
| Comment by Trang Truong [ 26/May/15 ] |
|
I can't reproduce this issue as its description is sometimes happen, the patch file is applied and it makes sense then I have provided test cases for one and multi item(s) selection. |