Skip to content

Commit

Permalink
Merge pull request #1649 from ProcessMaker/bugfix/FOUR-15004-next
Browse files Browse the repository at this point in the history
Bugfix/FOUR-15004: PMQL in record list doesnt work with pm variables
  • Loading branch information
ryancooley authored Jul 24, 2024
2 parents cab9359 + 199fd15 commit 972b006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/DataProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default {
* @param {object} params
* @returns {object}
*/
getDataSource(dataSourceId, params) {
getDataSource(dataSourceId, params, nonce = null) {
// keep backwards compatibility
if (
!window.ProcessMaker.screen.cacheEnabled &&
Expand All @@ -210,7 +210,7 @@ export default {
pmds_data: JSON.stringify(params.data)
}
}).then((response) => {
return response;
return [response, nonce];
});
},

Expand Down Expand Up @@ -266,7 +266,7 @@ export default {
},

getCollectionRecords(collectionId, options, nonce = null) {
options.useCache = window.ProcessMaker.screen.cacheEnabled;
options.useCache = window.ProcessMaker?.screen?.cacheEnabled;

return this.get(
`/collections/${collectionId}/records${this.authQueryString()}`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/inspector/options-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@

<div v-if="dataSource === dataSourceValues.dataConnector">
<pmql-input
:search-type="'collections'"
:search-type="'collections_w_mustaches'"
class="mb-1"
:input-label="'PMQL'"
v-model="pmqlQuery"
Expand Down

0 comments on commit 972b006

Please sign in to comment.