Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private static void buildDelete(QueryWrapper<?> wrapper, boolean camelToUndersco

private static void buildSort(
String sortField, String sortValue, QueryWrapper<?> wrapper, boolean camelToUnderscore) {
if (sortField != null && sortValue != null) {
if (sortField != null && sortValue != null && !"undefined".equals(sortField)) {
if (camelToUnderscore) {
sortField = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, sortField);
}
Expand All @@ -91,7 +91,7 @@ private static void buildSort(

private static void buildFilter(
String searchField, JsonNode searchValue, QueryWrapper<?> wrapper, boolean camelToUnderscore) {
if (searchField != null && !searchField.equals("") && searchValue != null) {
if (searchField != null && !searchField.equals("") && !"undefined".equals(searchField) && searchValue != null) {
if (camelToUnderscore) {
searchField = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, searchField);
}
Expand Down