missed from previous commit a77a31ac0766cf353d078f4addc0701042cc3f60

This commit is contained in:
Jon Atkins 2013-12-01 19:34:58 +00:00
parent a77a31ac07
commit 0a4bac56ea

View File

@ -142,8 +142,11 @@ window.renderPortalDetails = function(guid) {
'<div class="linkdetails">' + linkDetails.join('') + '</div>'
);
runHooks('portalDetailsUpdated', {guid: guid, portal: portal, portalDetails: details, portalData: data});
// only run the hooks when we have a portalDetails object - most plugins rely on the extended data
// TODO? another hook to call always, for any plugins that can work with less data?
if (details) {
runHooks('portalDetailsUpdated', {guid: guid, portal: portal, portalDetails: details, portalData: data});
}
}