U4-10993 - Using open doc type on info Tab when creating a content node tries to create a new doc type

Created by Rune Strand 20 Feb 2018, 10:32:20 Updated by Rune Strand 08 Mar 2018, 10:06:07

Tags: Up For Grabs

What did you do?

  • Created new content node
  • Before save/publish used the Open doc type link on the info tab. See [file:Screenshot_60.png]

What did you expect to happen?

  • That I would be able to edit the document type

What actually happened?

  • Instead of opening the document type it opened a create document type editor. See [file:Screenshot_61.png]
  • Even more confusing the "new" document type inherits from the document type I was trying to open.

Seems the issue here is that the "create=true" querystring parameter (from creating the content node) is getting passed along to the document type editor.

2 Attachments

Comments

Sebastiaan Janssen 22 Feb 2018, 17:57:54

I don't know mate, seems to be something wrong in your install. I can't repro in a clean install and the code for opening the document type is:

scope.openDocumentType = function (documentType) { var url = '/settings/documenttypes/edit/' + documentType.id; $location.path(url); };

I fail to see how it would be possible that there's a querystring added to that.

If you have any way to repro on a clean install I'm all ears!


Rune Strand 23 Feb 2018, 10:40:46

Have tried on multiple clean installs and on multiple machines :)

Repro:

  1. Create any new content item
  2. Go to Info tab and click open document type (before publishing)

I think $location.path changes the url but keeps querystring intact. Example from a clean 7.8.1 install: url on new content node /umbraco#/content/content/edit/-1?doctype=homePage&create=true url on "edit" doc type /umbraco#/settings/documenttypes/edit/1061?doctype=homePage&create=true


Sebastiaan Janssen 23 Feb 2018, 10:42:58

Aha.. that seems random. Okidoki.


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category: UI

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.8.1

Due in version: 7.9.3

Sprint:

Story Points:

Cycle: