Skip to content

Instantly share code, notes, and snippets.

@helms-charity
Created May 10, 2014 14:11
Show Gist options
  • Save helms-charity/c9f9a91a7a97ebccb465 to your computer and use it in GitHub Desktop.
Save helms-charity/c9f9a91a7a97ebccb465 to your computer and use it in GitHub Desktop.
JavaScript error in the CreateMetadataTemplate.js
In CQ 5.6.1 you cannot open the New Metadata Template... Dialog in Digital Asset Manager
There is a JavaScript error in the CreateMetadataTemplate.js
If you want to correct it, open crxde and open /libs/dam/widgets/source/widgets/CreateMetadataTemplate.js
Line 162 change the if from
if(items.hasOwnProperty(key) && typeof(items[key]) === 'object' && items[key].name.substring(0, 2) === "./")
to
if(items.hasOwnProperty(key) && typeof(items[key]) === 'object' && items[key].name && items[key].name.substring(0, 2) === "./")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment