U4-6833 - Constructor ContentType(int parentId) produces incorrect results with any value except -1

Created by Murray Roke 14 Jul 2015, 04:17:05 Updated by Murray Roke 15 Oct 2015, 20:14:28

Current code:

 public ContentType(int parentId)
      : base(parentId)

Suggested breaking change:

 public ContentType()
      : base(-1)


Sebastiaan Janssen 14 Jul 2015, 06:25:52

Please explain?

Murray Roke 15 Oct 2015, 20:14:28

This was a while ago, I think If you call new ContentType(123) the content type created does not inherit the properties of 123.

Priority: Normal

Type: Bug

State: Closed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.2.5

Due in version:


Story Points: