Skip to content

Commit

Permalink
improve defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaoVA committed Nov 2, 2023
1 parent 5e00613 commit b38813e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions LEAF_Request_Portal/js/formSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -1037,12 +1037,10 @@ var LeafFormSearch = function (containerID) {
widgetID +
'" class="chosen" aria-label="condition" style="width: 120px">\
<option value="MATCH ALL">CONTAINS</option>\
<option value="NOT MATCH">DOES NOT CONTAIN</option>\
<option value="MATCH">CONTAINS EITHER</option>\
<option value="=">=</option>\
<option value="!=">!=</option>\
<option value="LIKE">HAS FRAGMENT</option>\
<option value="NOT LIKE">DOES NOT HAVE FRAGMENT</option>\
</select>'
);
$(
Expand Down
4 changes: 4 additions & 0 deletions LEAF_Request_Portal/sources/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -3517,6 +3517,10 @@ public function query(string $inQuery): mixed
$recordIDs = trim($recordIDs, ',');
$recordIDs = $recordIDs ?: 0;

if(count($res) > count(array_keys($data))) {
header('LEAF-Query: continue'); // signal frontend there might be more data
}

// These all require the recordIDs to be set
if (!empty($recordIDs))
{
Expand Down

0 comments on commit b38813e

Please sign in to comment.