mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
Fixes #1362 If duplicated group has little star the new group has the star too.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user