In OrderFeature, corretto ordinamento quando ci sono dipendenze
This commit is contained in:
@@ -913,7 +913,8 @@ local function ReorderFeatureWithDependency( vProc)
|
||||
-- se il processo deve stare prima, ma ora è dopo
|
||||
if nRefIndex and nRefIndex < i then
|
||||
table.insert( vProc, nRefIndex, table.remove( vProc, i))
|
||||
i = max( nRefIndex - 1, 1)
|
||||
-- se ci sono stati scambi, si ricomincia da capo
|
||||
i = 0
|
||||
end
|
||||
elseif Drill.Identify( vProc[i]) and vProc[i].Dependency and vProc[i].Dependency.ExecAfter and vProc[i].Dependency.ExecAfter.Id then
|
||||
local nRefId = vProc[i].Dependency.ExecAfter.Id
|
||||
@@ -929,7 +930,8 @@ local function ReorderFeatureWithDependency( vProc)
|
||||
-- se il processo deve stare dopo, ma ora è prima
|
||||
if nRefIndex and nRefIndex > i then
|
||||
table.insert( vProc, nRefIndex, table.remove( vProc, i))
|
||||
i = max( nRefIndex - 1, 1)
|
||||
-- se ci sono stati scambi, si ricomincia da capo
|
||||
i = 0
|
||||
end
|
||||
end
|
||||
i = i + 1
|
||||
|
||||
Reference in New Issue
Block a user