U4-7799 - ModelsBuilder button in Content Type Editor should save the current content type

Created by Stephan 20 Jan 2016, 13:07:25 Updated by Claus Jensen 17 Jan 2017, 08:00:27

Tags: ModelsBuilder

Relates to: U4-7748

The button currently says "generate models" and will only generate models It should save the current content type first


Mads Rasmussen 09 Feb 2016, 11:35:47

PR: https://github.com/umbraco/Umbraco-CMS/pull/1108

Stephan 09 Feb 2016, 13:26:45

When generation fails (easy to repro: just create a property with an alias identical to the alias of the content type) the api reports the error. Any chance that that error can in turn be reported in the UI... essentially, "models generation has failed, see exception in U log"?

Stephan 09 Feb 2016, 13:28:30

Also: is the javascript code dealing with the models being "out of date" at all? or has it been skipped entirely (which would probably be fine)?

Shannon Deminick 10 Feb 2016, 12:03:29

I've fixed up the generate models button, it will only be shown if the models are out of date. Once models are re-generated, it will check their status and show/hide the button accordingly.

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.4.0

Due in version: 7.4.0

Sprint: Sprint 8

Story Points: