U4-7910 - on 7.4-RC1 Calling GetContentTypeContainer(Guid containerId) fails No container type exists with ID: a2cb7800-f571-4787-9638-bc48539a0efb

Created by Kevin Jump 05 Feb 2016, 13:13:48 Updated by Sebastiaan Janssen 05 Feb 2016, 15:13:15

Calling GetContentTypeContainer(Guid containerId) with a valid guid for a container fails with:

No container type exists with ID: a2cb7800-f571-4787-9638-bc48539a0efb

looks like it's a typo here https://github.com/umbraco/Umbraco-CMS/blob/67c3ea7c00f44cf3426a37c2cc62e7b561fc859a/src/Umbraco.Core/Services/ContentTypeService.cs#L232 ?

return GetContainer(containerId, Constants.ObjectTypes.DocumentTypeGuid); should read return GetContainer(containerId, Constants.ObjectTypes.DocumentTypeContainerGuid); ? also think it's the same for GetMediaTypeContainer (https://github.com/umbraco/Umbraco-CMS/blob/67c3ea7c00f44cf3426a37c2cc62e7b561fc859a/src/Umbraco.Core/Services/ContentTypeService.cs#L259)

should read ? return GetContainer(containerId, Constants.ObjectTypes.MediaTypeContainerGuid);

Comments

Sebastiaan Janssen 05 Feb 2016, 13:19:14

@zpqrtbnk Thoughts? It blames you :)

https://github.com/umbraco/Umbraco-CMS/blame/67c3ea7c00f44cf3426a37c2cc62e7b561fc859a/src/Umbraco.Core/Services/ContentTypeService.cs#L232


Kevin Jump 05 Feb 2016, 13:22:31

added pr https://github.com/umbraco/Umbraco-CMS/pull/1101


Claus Jensen 05 Feb 2016, 14:16:32

@KevinJump Thanks for the PR :) Yes - this was obviously a typo!


Stephan 05 Feb 2016, 14:31:12

@sebastiaan yes, my bad


Sebastiaan Janssen 05 Feb 2016, 15:13:15

Great, good catch!


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.4.0

Due in version: 7.4.0

Sprint: Sprint 8

Story Points:

Cycle: