Skip to content
Snippets Groups Projects
Commit 74f15b09 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

Task #4022: bugfix where nrOfInstances was not resolved correct.

parent 2a0432b2
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,8 @@ CREATE OR REPLACE FUNCTION getVTitemRecursive(INT4, VARCHAR(150), INT4)
FROM VICtemplate
WHERE treeID = $1
AND name = vParentName
AND (index::VARCHAR(50) = vIndex OR index::VARCHAR(50) = vIndex2);
AND (index::VARCHAR(50) = vIndex OR index::VARCHAR(50) = vIndex2)
ORDER BY index;
ELSE
SELECT nodeid,
parentid,
......@@ -91,8 +92,9 @@ CREATE OR REPLACE FUNCTION getVTitemRecursive(INT4, VARCHAR(150), INT4)
FROM VICtemplate
WHERE treeID = $1
AND name = vParentName
AND (index::VARCHAR(50) = vIndex OR index::VARCHAR(50) = vIndex2)
AND parentid = aParentID;
AND (index::VARCHAR(50) = vIndex OR index::VARCHAR(50) = vIndex2)
AND parentid = aParentID
ORDER BY index;
END IF;
IF FOUND AND NOT vChildName IS NULL THEN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment