рефакторинг. переносил текущие объекты в другое место

This commit is contained in:
2024-10-13 22:08:13 +03:00
parent 09b64218bd
commit 6afa2dc892
240 changed files with 1472 additions and 1518 deletions

View File

@@ -24,16 +24,16 @@ public class UpdateBugReportField extends ComponentsRepositoryPass<BugReport> {
String old_description = "";
String old_comment = "";
protected boolean canUpdate() {
return Current.getAccount().CheckAccessRights(target.sender_address, Log);
return Global.mainModule.getAccount().CheckAccessRights(target.sender_address, Log);
}
@Override
protected boolean canStart(Object... args) throws Exception {
if (!Current_.Check(Log, Current.BugReport))
if (!Global.mainModule.Check(Log, Current.BugReport))
return false;
old_description = "";
old_comment = "";
//--
target = Current.getBugReport();
target = Global.mainModule.getBugReport();
fieldNames.clear();
fieldValues.clear();
for (int i = 0; i < args.length; ++i) {