Skip to content

Commit

Permalink
search values trimmed and urlencoded
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Jan 27, 2022
1 parent 726c255 commit b96461a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Translate
- ERP user is set on cases
- Custom banners for pebrotic and ketchup variants by CLI
- Fix: search values trimmed and urlencoded

## 4.3.2 2022-01-21

Expand Down
3 changes: 2 additions & 1 deletion tomatic/static/components/callinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ CallInfo.selectContract = function(idx) {


var retrieveInfo = function () {
var encodedValue = encodeURIComponent(CallInfo.search.trim());
m.request({
method: 'GET',
url: '/api/info/'+CallInfo.search_by+"/"+encodeURIComponent(CallInfo.search.trim()),
url: '/api/info/'+CallInfo.search_by+"/"+encodedValue,
extract: deyamlize,
}).then(function(response){
console.debug("Info GET Response: ", response);
Expand Down

0 comments on commit b96461a

Please sign in to comment.