File tree Expand file tree Collapse file tree
javasource/deeplink/actions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,18 +112,18 @@ public java.lang.Boolean executeAction() throws Exception
112112 LOG .error ("Failed to execute deeplink " + link .getName (), e );
113113 return false ;
114114 }
115+
116+ IContext sudoContext = getContext ().createSudoClone ();
115117
116118 //remove the pendinglink, unless it should be reused during this session..
117119 if (link .getUseAsHome ()) { //do not remove if used as home.
118- IContext sudoContext = getContext ().createSudoClone ();
119120 this .pendinglink .setSessionId (sudoContext , this .getContext ().getSession ().getId ().toString ());
120121 Core .commit (sudoContext , this .pendinglink .getMendixObject ());
121122 }
122123 else {
123124 Core .delete (this .getContext (), this .pendinglink .getMendixObject ());
124125 }
125126
126- IContext sudoContext = getContext ().createSudoClone ();
127127 if (link .getTrackHitCount (sudoContext )) {
128128 //set hitcount (note, this might not be exact)
129129 link .setHitCount (sudoContext , link .getHitCount (sudoContext ) + 1 );
You can’t perform that action at this time.
0 commit comments