Skip to content
Snippets Groups Projects
Verified Commit 8fca9570 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #7636 fix set default action

parent 47004e0c
No related branches found
No related tags found
No related merge requests found
...@@ -178,8 +178,13 @@ export class BasketAdministrationComponent implements OnInit { ...@@ -178,8 +178,13 @@ export class BasketAdministrationComponent implements OnInit {
setDefaultAction(group: any, action: any) { setDefaultAction(group: any, action: any) {
group.groupActions.forEach((tmpAction: any) => { group.groupActions.forEach((tmpAction: any) => {
tmpAction.default_action_list = (action.id == tmpAction.id); if (tmpAction.id == action.id) {
tmpAction.used_in_action_page = (action.id == tmpAction.id); tmpAction.default_action_list = true;
tmpAction.used_in_action_page = true;
tmpAction.used_in_basketlist = true;
} else {
tmpAction.default_action_list = false;
}
}); });
this.addAction(group); this.addAction(group);
} }
...@@ -193,6 +198,7 @@ export class BasketAdministrationComponent implements OnInit { ...@@ -193,6 +198,7 @@ export class BasketAdministrationComponent implements OnInit {
}); });
} }
unlinkGroup(groupIndex: any) { unlinkGroup(groupIndex: any) {
let r = confirm(this.lang.unlinkGroup + ' ?'); let r = confirm(this.lang.unlinkGroup + ' ?');
...@@ -519,6 +525,7 @@ export class BasketAdministrationGroupListModalComponent { ...@@ -519,6 +525,7 @@ export class BasketAdministrationGroupListModalComponent {
this.newBasketGroup.result_page = 'list_with_attachments'; this.newBasketGroup.result_page = 'list_with_attachments';
this.actionAll[0].used_in_action_page = true; this.actionAll[0].used_in_action_page = true;
this.actionAll[0].default_action_list = true; this.actionAll[0].default_action_list = true;
this.actionAll[0].used_in_basketlist = true;
this.actionAll[0].checked = true; this.actionAll[0].checked = true;
this.newBasketGroup.groupActions = this.actionAll; this.newBasketGroup.groupActions = this.actionAll;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment