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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Publish and create new" on file collection #1183

Closed
bert-bruggeman opened this issue Mar 21, 2018 · 1 comment · Fixed by #1200
Closed

"Publish and create new" on file collection #1183

bert-bruggeman opened this issue Mar 21, 2018 · 1 comment · Fixed by #1200

Comments

@bert-bruggeman
Copy link

bert-bruggeman commented Mar 21, 2018

- Do you want to request a feature or report a bug?
Bug

- What is the current behavior?
"Publish and create new" on a file collection is present in the publish dropdown menu, "create: false" is set in the config file even though a single file should always have this setting).

- If the current behavior is a bug, please provide the steps to reproduce.
config example:

- name: "info"
        label: "Info"
        file: "_data/info.yml"
        delete: false
        create: false
        fields:
          - {label: "Title", name: "title", widget: "string", required: false }
          - {label: "Name", name: "name", widget: "string", required: false }
          - {label: "Street", name: "street", widget: "string", required: false }
          - {label: "Postal", name: "postal", widget: "string", required: false }
          - {label: "Locality", name: "locality", widget: "string", required: false }
          - {label: "Phone", name: "tel", widget: "string", required: false }
          - {label: "Mobile", name: "mobile", widget: "string", required: false }
          - {label: "Email", name: "email", widget: "string", required: false }

- What is the expected behavior?
"Publish and create new" shouldn't be in the publish dropdown for single files...

- Please mention your CMS, node.js, and operating system version.
CMS 1.3.5 / OSX 10.13.3

@erquhart
Copy link
Contributor

erquhart commented Mar 27, 2018

Good catch, thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants