umbraco/Umbraco-CMS — pull request #348 by aaronpowell (2014-04-07 08:10:14+00:00)
Title: U4-4629 - Detecting existing macros

By setting the ID of the macro the repository layer will update the existing instance rather than trying to create a new one, which would result in a duplicate alias and that violates a table index.