HOR-285 Updated documentation regarding sort by filtering.

This commit is contained in:
Chloe Deguzman
2016-03-04 21:00:13 +00:00
parent 18f5cea09b
commit 6e94f44d25
2 changed files with 19 additions and 0 deletions

View File

@@ -44,6 +44,16 @@ try {
if (isset( $start )) {
$Criteria->setOffset( $start );
}
// The $sort field is arbitrary
// This can result in ORDER BY
// SQL injection
// This ensures that ORDER BY will ONLY
// use a known good sort field.
// There is a matching list on the javascript side at
// workflow/engine/templates/processes/main.js
$allowedSortField = array(
"PRO_TITLE",