рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user