mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-17 20:50:44 +00:00
Merge pull request #186 from Kingsrook/feature/search-possible-values-by-label
added labels as a param when searching for PVSs
This commit is contained in:
@ -1925,6 +1925,7 @@ public class QJavalinImplementation
|
||||
{
|
||||
String searchTerm = context.queryParam("searchTerm");
|
||||
String ids = context.queryParam("ids");
|
||||
String labels = context.queryParam("labels");
|
||||
|
||||
SearchPossibleValueSourceInput input = new SearchPossibleValueSourceInput();
|
||||
setupSession(context, input);
|
||||
@ -1937,6 +1938,11 @@ public class QJavalinImplementation
|
||||
List<Serializable> idList = new ArrayList<>(Arrays.asList(ids.split(",")));
|
||||
input.setIdList(idList);
|
||||
}
|
||||
else if(StringUtils.hasContent(labels))
|
||||
{
|
||||
List<String> labelList = new ArrayList<>(Arrays.asList(labels.split(",")));
|
||||
input.setLabelList(labelList);
|
||||
}
|
||||
|
||||
SearchPossibleValueSourceOutput output = new SearchPossibleValueSourceAction().execute(input);
|
||||
|
||||
|
Reference in New Issue
Block a user