Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Multiple 'Content' item on the add new modal #411

Closed
herflis opened this issue Oct 7, 2019 · 0 comments
Closed

[BUG] Multiple 'Content' item on the add new modal #411

herflis opened this issue Oct 7, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@herflis
Copy link
Contributor

@herflis herflis commented Oct 7, 2019

馃悳 Bug Report

If you add a new content to a parent where every type is allowed to add (e.g. a system folder), a massive amount of items are appeared as GenericContent

馃摝 Package / Application

@sensenet/sn-app

馃搩 Version

latest

馃悳 Describe the bug

The allowed child types list contains types that are not available in the schema
requested with the GetSchema action (e.g. Application). In the getSchemaByName method there's a statement which returns GenericContent if it become an input type that is not available in the schema.

馃憠 Steps To Reproduce

  1. Go to admin.sensenet.com and login with BuiltIn\admin
  2. Click into the command palette and type +InTree:"/Root/(apps)" and choose /Root/(apps)/Folder from the dropdown
  3. Click the add new button in the bottom right corner

馃槸 Current behavior

Every time when a type is not available in the schema a copy of GenericContent is added to the available content type list.

馃 Expected behavior

All the allowed types should be shown in the add new modal

馃柤 Screenshots

image

馃捇 Code sample (for developers)

if (!schema) {
      return this.getSchema(GenericContent)
    }

That is the problematic part of code in SchemaStore.ts

@herflis herflis modified the milestones: Sprint 194, Sprint 195 Oct 7, 2019
@herflis herflis modified the milestones: Sprint 195, Sprint 196 Oct 22, 2019
@herflis herflis modified the milestones: Sprint 196, Sprint 197 Nov 6, 2019
@herflis herflis modified the milestones: Sprint 197, Sprint 198 Nov 20, 2019
@herflis herflis modified the milestones: Sprint 198, Sprint 199 Dec 5, 2019
@pusztaienike pusztaienike self-assigned this Dec 19, 2019
@herflis herflis modified the milestones: Sprint 199, Sprint 200, Sprint 201 Jan 6, 2020
@herflis herflis closed this Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can鈥檛 perform that action at this time.