diff --git a/cls/_pkg/isc/rest/handler.cls b/cls/_pkg/isc/rest/handler.cls index 6584e56..3491042 100644 --- a/cls/_pkg/isc/rest/handler.cls +++ b/cls/_pkg/isc/rest/handler.cls @@ -734,6 +734,9 @@ ClassMethod DispatchClassAction(resourceName As %String, action As %String) As % Kill params Merge params = %request.Data + // Discard debug trigger + Kill params("CSPDEBUG") + Set actionClass = ..FindActionClass(resourceName, action, "class", .resourceClass) If (actionClass = "") { Quit @@ -780,6 +783,9 @@ ClassMethod DispatchInstanceAction(resourceName As %String, id As %String, actio Kill params Merge params = %request.Data + // Discard debug trigger + Kill params("CSPDEBUG") + Set actionClass = ..FindActionClass(resourceName, action, "instance", .resourceClass) If (actionClass = "") { Quit diff --git a/cls/_pkg/isc/rest/queryGenerator.cls b/cls/_pkg/isc/rest/queryGenerator.cls index 4ba543d..ab26ea8 100644 --- a/cls/_pkg/isc/rest/queryGenerator.cls +++ b/cls/_pkg/isc/rest/queryGenerator.cls @@ -44,6 +44,11 @@ ClassMethod BuildQuery(tableName As %String, columns As %DynamicObject, index As Set propName = $Order(params("")) While (propName '= "") { Set param = params(propName, 1) + // ignore debug signal + If (propName = "CSPDEBUG") { + Set propName = $Order(params(propName)) + Continue + } // if the property is $orderBy, then we store the order by string // for appending at the end of the where clause building If (propName = "$orderBy") {