U4-10939 - After upgrade to 7.8, can't create macro - error: Could not task for operation Create for node type macros

Created by Sebastiaan Janssen 07 Feb 2018, 14:00:36 Updated by Sebastiaan Janssen 09 Feb 2018, 10:05:28

Tags: Unscheduled

Relates to: U4-10840

This is caused by a missing update to UI.xml

Comments

Sebastiaan Janssen 07 Feb 2018, 14:03:08

Fix: ~\Umbraco\Config\Create\UI.xml needs to contain the following:

  <nodeType alias="macros">
    <header>Macro</header>
    <usercontrol>/create/simple.ascx</usercontrol>
    <tasks>
      <create assembly="umbraco" type="macroTasks" />
      <delete assembly="umbraco" type="macroTasks" />
    </tasks>
  </nodeType>

The missing element is: <create assembly="umbraco" type="macroTasks" />

A config tranform for this would be:

<?xml version="1.0"?>
<createUI xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  
  <nodeType alias="macros" xdt:Locator="Match(alias)">
    <tasks>
      <create assembly="umbraco" type="macroTasks" xdt:Transform="InsertIfMissing" />
    </tasks>
  </nodeType>
</createUI>


Sebastiaan Janssen 09 Feb 2018, 10:05:25

Fixed in https://github.com/umbraco/Umbraco-CMS/commit/79517f171c400c468624e23601706aeb30ba4dd3


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.8.0

Due in version: 7.8.1

Sprint:

Story Points:

Cycle: