File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/resources/templates/layout Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 163163 var myUrl = '' ;
164164 var requestPath = '[(@{{url}(url=${#request.getRequestURI()})})]' ;
165165 var requestPathFirst = requestPath . split ( "/" ) [ 1 ] ;
166+ var requestPathSecond = requestPath . split ( "/" ) [ 2 ] ;
166167 var srcType = ev . dataTransfer . getData ( "task" ) . split ( "_" ) [ 0 ] ;
167168 var sourceTaskId = ev . dataTransfer . getData ( "task" ) . split ( "_" ) [ 1 ] ;
168169 var destinationTaskIdInfo = ev . target . id ;
169170 var destinationTaskId = destinationTaskIdInfo . split ( "_" ) [ 1 ] ;
170171 if ( srcType === 'task' ) {
171172 if ( requestPathFirst === 'taskstate' ) {
172- myUrl = '[(@{/taskstate/})]' + sourceTaskId + '/changeorderto/' + destinationTaskId ;
173+ myUrl = '[(@{/taskstate/task/ })]' + sourceTaskId + '/changeorderto/' + destinationTaskId ;
173174 window . location . replace ( myUrl ) ;
174175 } else if ( requestPathFirst === 'project' ) {
175- myUrl = '[(@{/project/task/ })]' + sourceTaskId + '/changeorderto/' + destinationTaskId ;
176+ myUrl = '[(@{/project/})]' + requestPathSecond + "/task/" + sourceTaskId + '/changeorderto/' + destinationTaskId ;
176177 window . location . replace ( myUrl ) ;
177178 }
178179 }
You can’t perform that action at this time.
0 commit comments