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

Fix issue 443 plugin proxy_cache got "expected an integer" #493

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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