Skip to content

Commit

Permalink
fix dufoli#50
Browse files Browse the repository at this point in the history
  • Loading branch information
Dufgui committed May 7, 2024
1 parent 1a40b75 commit 6cdd41f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ class AllDataBoxShortcut extends React.PureComponent {

//search for metadata if user did not disabled it
if (metadataShortcutSearch == "true"){
const flowSelect = "SELECT LatestVersionId, ApiName, Label, ProcessType FROM FlowDefinitionView WHERE Label LIKE '%" + shortcutSearch + "%' LIMIT 30";
const flowSelect = "SELECT f.LatestVersionId, f.ApiName, f.Label, f.ProcessType FROM FlowDefinitionView as f WHERE f.Label LIKE '%" + shortcutSearch + "%' AND f.VersionNumber > (SELECT (max(f2.VersionNumber) - 5) FROM FlowDefinitionView as f2 WHERE f.ApiName = f2.ApiName) LIMIT 30";
const profileSelect = "SELECT Id, Name, UserLicense.Name FROM Profile WHERE Name LIKE '%" + shortcutSearch + "%' LIMIT 30";
const permSetSelect = "SELECT Id, Name, Label, Type, LicenseId, License.Name, PermissionSetGroupId FROM PermissionSet WHERE Label LIKE '%" + shortcutSearch + "%' LIMIT 30";
const compositeQuery = {
Expand Down

0 comments on commit 6cdd41f

Please sign in to comment.