Affects Version/s: Master
Component/s: Page Templates
Steps to reproduce it:
- Startup the server
- Go to the Global Site/Site Builder/Page Templates
- Create a page template called "Article"
- Create a page template with the same name again
You only get Error: Your request failed to complete (see attached image)
You get an error which shows the reason for the failure
Probably the error is shown because of the unique index in the LayoutPageTemplateEntry. We store the default name there.
The root of the issue is that we store the name as XML in the parent table, LayoutPrototype table so there is no way to validate it. One approach to improve this is to have a localization table as JournalArticle has. Right now we can't create two templates with the same name because of the mentioned index but we can do it for non-default languages.