[BLOSSOM-148] Area defined as Single Type allows to add more than one component Created: 24/Oct/13 Updated: 25/Oct/13 Resolved: 25/Oct/13 |
|
| Status: | Closed |
| Project: | Blossom |
| Component/s: | None |
| Affects Version/s: | 3.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Francisco J. Giner | Assignee: | Tobias Mattsson |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| 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 |
|
If you define an area like that: @Area(type = AreaType.SINGLE, value = "xxxx") Magnolia allows you to add another component when you have one now (it's available the add button). After configuring the new component the renderer crashes because is not waiting two or more components inside the area. |
| Comments |
| Comment by Tobias Mattsson [ 24/Oct/13 ] |
|
Hi Francisco, Do you have a stack trace from when you encountered the problem? |
| Comment by Francisco J. Giner [ 24/Oct/13 ] |
|
Added stack trace file. |
| Comment by Tobias Mattsson [ 24/Oct/13 ] |
|
After switching the area to SINGLE I see the same issue. It would be better if it would just render the first component and ignore the rest. |
| Comment by Francisco J. Giner [ 24/Oct/13 ] |
|
Or when you have one component in the area disable or remove the add component button at the area's bar |
| Comment by Tobias Mattsson [ 24/Oct/13 ] |
|
Right, that's how its supposed to behave. I can't reproduce your problem, for me there's no add button when the area is set to SINGLE. Could it be that you just haven't reloaded the page editor after changing the type? |
| Comment by Francisco J. Giner [ 24/Oct/13 ] |
|
Ok Tobias, no button in the area bar or New XXX Component after. But there is in the right sidebar of page editor ("+ Add component"). And this link allows you to add a new component. |
| Comment by Tobias Mattsson [ 25/Oct/13 ] |
|
Thanks for reporting this, its being tracked as |
| Comment by Francisco J. Giner [ 25/Oct/13 ] |
|
Thanks to you and for your work with Blossom. |