no message
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.Passes.Server;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Current_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Database.Objects.riDBObject;
|
||||
import _VisualDVM.Repository.RepositoryServer;
|
||||
@@ -16,14 +16,14 @@ public abstract class CloneServerObject<S extends RepositoryServer, D extends ri
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
src=null;
|
||||
if (!CurrentAnchestor.Check(Log, currentName()))
|
||||
if (!Current_.Check(Log, currentName()))
|
||||
return false;
|
||||
|
||||
//---------
|
||||
pk = null;
|
||||
if (Current.getAccount().CheckRegistered(Log)) {
|
||||
target = d.newInstance();
|
||||
target.SynchronizeFields(src=(D) CurrentAnchestor.get(currentName()));
|
||||
target.SynchronizeFields(src=(D) Current_.get(currentName()));
|
||||
//единственное отличие клона - текущий автор
|
||||
target.description+=" копия";
|
||||
target.sender_name = Current.getAccount().name;
|
||||
|
||||
Reference in New Issue
Block a user