From f14f10f4a4daae743a9782a0f91928dc3606715d Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Fri, 7 May 2021 16:41:48 +0200 Subject: [PATCH] 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) {