From 6d579c5637993c0be8c93d1b9d2ffda083835c83 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 13 May 2021 13:50:07 +0200 Subject: [PATCH] (cp f14f10f) Fixes #1362 If duplicated group has little star the new group has the star too. --- admin/themes/default/js/group_list.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/admin/themes/default/js/group_list.js b/admin/themes/default/js/group_list.js index 7d336ed89..1e87477d5 100644 --- a/admin/themes/default/js/group_list.js +++ b/admin/themes/default/js/group_list.js @@ -442,6 +442,12 @@ var duplicateAction = function(id) { groupbox.insertAfter($("#group-"+id)); setupGroupBox(groupbox); updateBadge(); + + /* data.result.groups[0].is_default is a string */ + if(data.result.groups[0].is_default == "true") { + console.log('here: ' +id); + setupDefaultActions(data.result.groups[0].id, true); + } } }, error: function (err) {