[MSHOP-185] Creation of a new shop fails when there are already two shops which have a price category with the same name Created: 29/Jun/15 Updated: 10/Jul/15 Resolved: 10/Jul/15 |
|
| Status: | Resolved |
| Project: | Magnolia Shop (closed) |
| Component/s: | None |
| Affects Version/s: | 2.2 |
| Fix Version/s: | 2.3.0 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Will Scheidegger | Assignee: | Will Scheidegger |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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
|
| Description |
|
The sampleShop has a price category called "standard-price". Now when you create a second shop and in its configuration you add again a price category called "standard-price" you will not be able to create a third shop: Caused by: java.lang.NullPointerException at info.magnolia.ui.form.field.factory.SelectFieldFactory.buildOptions(SelectFieldFactory.java:151) at info.magnolia.ui.form.field.factory.SelectFieldFactory.createFieldComponent(SelectFieldFactory.java:98) at info.magnolia.ui.form.field.factory.SelectFieldFactory.createFieldComponent(SelectFieldFactory.java:73) at info.magnolia.ui.form.field.factory.AbstractFieldFactory.createField(AbstractFieldFactory.java:108) at info.magnolia.ui.dialog.formdialog.FormBuilder.buildReducedForm(FormBuilder.java:214) The reason for this is that IndexedContainer.addItem() returns null when the new "standard-price" is added. |
| Comments |
| Comment by Will Scheidegger [ 10/Jul/15 ] |
|
default price category selector not available in createShop dialog anymore (does not make sense because at the time of the shop creation there are no price categories for the shop yet). |