egw_action copy fixes regarding ticket 84314

This commit is contained in:
Milan 2023-07-20 16:40:22 +02:00
parent 4727b40329
commit 0dd7616c5e
3 changed files with 10 additions and 3 deletions

View File

@ -836,7 +836,7 @@ class AddressbookApp extends EgwApp
id,
values.name
);
action.setDefaultExecute(action.parent.onExecute.fnct);
action.setDefaultExecute(action.parent.onExecute.functionToPerform);
action.updateAction({group: 1});
}
}

View File

@ -283,7 +283,14 @@ export class EgwFnct
{
private readonly context: any;
private readonly acceptedTypes: string[];
functionToPerform;
functionToPerform:Function;
/**
* @deprecated please use functionToPerform instead
*/
public get fnct(){
return this.functionToPerform
}
private value;
// Flag for if this action is using a default handler
// I don't think this is ever used @unused

View File

@ -1116,7 +1116,7 @@ export class filemanagerAPP extends EgwApp
let clipboard = JSON.parse(egw.getSessionItem('phpgwapi', 'egw_clipboard'));
// Set a flag so apps can tell the difference, if they need to
action.set_onExecute(action.parent.onExecute.fnct);
action.set_onExecute(action.parent.onExecute.functionToPerform);
action.execute(clipboard.selected,selected[0]);
// Clear the clipboard, the files are not there anymore