diff --git a/v1/resources/svc_operation.cfc b/v1/resources/svc_operation.cfc index 8671153..7792563 100644 --- a/v1/resources/svc_operation.cfc +++ b/v1/resources/svc_operation.cfc @@ -51,18 +51,18 @@ p.man p.sort ( - select 1 from svc_operation_cfs_param m - join svc_operation om on m.svc_operation_id=om.svc_operation_id - join svc_operation oc on (om.svc_id=oc.svc_id AND om.operation='modify' AND oc.operation='create') - join svc_operation_cfs_param c on (oc.svc_operation_id=c.svc_operation_id AND m.svc_operation_cfs_param=c.svc_operation_cfs_param) - where c.svc_operation_cfs_param_id=p.svc_operation_cfs_param_id - order by p.sirt, p.svc_operation_cfs_param_id - limit 1 + select 1 from svc_operation_cfs_param m + join svc_operation om on (m.svc_operation_id=om.svc_operation_id) + join svc_operation oc on (om.svc_id=oc.svc_id AND om.operation='modify' AND oc.operation='create') + join svc_operation_cfs_param c on (oc.svc_operation_id=c.svc_operation_id AND m.svc_operation_cfs_param=c.svc_operation_cfs_param) + where c.svc_operation_cfs_param_id=p.svc_operation_cfs_param_id + order by c.svc_operation_cfs_param_id + limit 1 ) as isModifiable from svc_operation_cfs_param p where p.svc_operation_id= - order by p.svc_operation_cfs_param_id + order by p.sort, p.svc_operation_cfs_param_id