pgsql: searchNotificationLayerIntroducingVulnerability order by layer ID

This fixes a bug where the API was returning Notification pages ordered
by LDFV.ID instead of by Layer ID.
This commit is contained in:
Jimmy Zelinskie 2017-01-19 13:45:07 -05:00
parent 1d6ef941a0
commit ea73aa153d

View File

@ -219,7 +219,7 @@ const (
AND vafv.featureversion_id = fv.id AND vafv.featureversion_id = fv.id
AND ldfv.featureversion_id = fv.id AND ldfv.featureversion_id = fv.id
AND ldfv.modification = 'add' AND ldfv.modification = 'add'
ORDER BY ldfv.ID ORDER BY ldfv.layer_id
) )
SELECT l.id, l.name SELECT l.id, l.name
FROM LDFV, Layer l FROM LDFV, Layer l