Skip to content

Commit

Permalink
Merge pull request #1614 from ProcessMaker/bugfix/FOUR-15004-b
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 6b2de94 + b824da5 commit 135c3d6
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 @@ -173,7 +173,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 @@ -190,7 +190,7 @@ export default {
pmds_data: JSON.stringify(params.data)
}
}).then((response) => {
return response;
return [response, nonce];
});
},

Expand Down Expand Up @@ -246,7 +246,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 135c3d6

Please sign in to comment.