Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #493 from danybmx/issue-443-fix-cache-plugin-expec…
Browse files Browse the repository at this point in the history
…ted-integer

Fix issue 443 plugin proxy_cache got "expected an integer"
  • Loading branch information
pantsel authored Nov 15, 2019
2 parents 2a4c3e9 + 2603208 commit 7865064
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/js/app/plugins/plugin-helper-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
// }
// }

if (fields[key].value instanceof Array
&& fields[key].elements.type === "integer") {
fields[key].value = fields[key].value.map(function(value) {
return parseInt(value);
});
}

if(!data.config) data.config = {};

Expand Down

0 comments on commit 7865064

Please sign in to comment.