[MGNLUI-1292] Drag-and-drop in workbench tree allows to create same name siblings Created: 02/May/13 Updated: 28/Nov/16 Resolved: 06/Jun/13 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | tree/list, user interaction |
| Affects Version/s: | None |
| Fix Version/s: | 5.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Tobias Mattsson | Assignee: | Philip Mundt |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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: | |||||||||
| Sprint: | RC 1 | ||||||||
| Description |
|
This should not be allowed as we don't support it. |
| Comments |
| Comment by Daniel Lipp [ 06/Jun/13 ] |
|
Looks like the check "targetNode.hasNodes()" prior to checking "targetNode.hasNode(source.getNodeName())" could simply be dropped. Pls also add a unit-test - should be very simple for that allowedAsChild method. |
| Comment by Philip Mundt [ 10/Jun/13 ] |
|
Fixed code and added unit test |