From 9628956a561c1597e6783bda8cd1dce5b0e3788d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 27 Dec 2017 11:55:45 -0500 Subject: [PATCH] closes #6199 global widgets will appear after page widgets --- src/widgets/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/index.js b/src/widgets/index.js index 968a5e7a9e..1d60664247 100644 --- a/src/widgets/index.js +++ b/src/widgets/index.js @@ -31,7 +31,7 @@ widgets.render = function (uid, options, callback) { var returnData = {}; async.each(locations, function (location, done) { - widgetsByLocation[location] = (data.global[location] || []).concat(data[options.template][location] || []); + widgetsByLocation[location] = (data[options.template][location] || []).concat(data.global[location] || []); if (!widgetsByLocation[location].length) { return done(null, { location: location, widgets: [] });