Skip to content

Commit

Permalink
Merge pull request #20 from dew326/ezs-1160-undefined-tooltip
Browse files Browse the repository at this point in the history
EZS-1160: Content on the fly shows undefined when content type description is empty
  • Loading branch information
lserwatka committed Nov 30, 2016
2 parents 6fbb987 + be6ff82 commit 438017d
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -67,7 +67,9 @@ YUI.add('cof-contenttypeselectorview', function (Y) {
if (contentTypeItemId === contentType.get('id')) {
var description = contentType.get('descriptions')[contentType.get('mainLanguageCode')];

contentTypeItem.setAttribute(ATTR_DESCRIPTION, description);
if (description) {
contentTypeItem.setAttribute(ATTR_DESCRIPTION, description);
}
}
});
});
Expand Down

0 comments on commit 438017d

Please sign in to comment.