Fix SQL syntax error and add CMM equipment filtering
- Fix missing space before GROUP BY in PC list pages (displaypcs, computers, listpcs, pclist, pcs) - Add pctypeid-based equipment filtering in editdevice.asp (CMM PCs only see CMM equipment) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -166,7 +166,7 @@ Set rsStatus = Nothing
|
||||
"AND NOT EXISTS (SELECT 1 FROM machinerelationships mr WHERE (mr.machineid = m.machineid OR mr.related_machineid = m.machineid) AND mr.relationshiptypeid = 3 AND mr.isactive = 1) "
|
||||
End If
|
||||
|
||||
strSQL = strSQL & whereClause & "GROUP BY m.machineid ORDER BY m.machinenumber ASC, m.hostname ASC"
|
||||
strSQL = strSQL & whereClause & " GROUP BY m.machineid ORDER BY m.machinenumber ASC, m.hostname ASC"
|
||||
|
||||
set rs = objconn.Execute(strSQL)
|
||||
while not rs.eof
|
||||
|
||||
Reference in New Issue
Block a user