No more error msg while delete analysis with wrong user/login
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Celine Noirot changed milestone to %V3.2.7
changed milestone to %V3.2.7
- Celine Noirot added Bug label
added Bug label
- Developer
The browser's console doesn't display the same error as for issue #171 (closed) :
- Developer
So I found a solution that works on ng6-test:
/ui/nG6/res/js/tx_nG6_pi1.js (l.1590)
FROM:
$.ajax({ url: val_url, success: function(val, status, xhr) { // return code : 0 = ok, 1 = right error, 2 = authentication error, 3 = connexion error if (val == '0') { [...] } else { $("#modal-label-tmpl").html("Error"); if (val == '1') { [...] } else if (val == '2') { [...] } else if (val == '3') { [...] } [...] } } });
TO:
$.ajax({ url: val_url, success: function(val, status, xhr) { // return code : 0 = ok, 1 = right error, 2 = authentication error, 3 = connexion error if (val == 0) { [...] } else { $("#modal-label-tmpl").html("Error"); if (val == 1) { [...] } else if (val == 2) { [...] } else if (val == 3) { [...] } [...] } } });
The value returned in AJAX cannot be evaluated as a STRING, but as an INT.
Edited by Romain Therville - Developer
If every value returned in AJAX is returned as an INT in the same way, here is a small list of AJAX calls that should bug:
- pi1.js
add_user
- pi6.js
delete_purge_data
Edited by Romain Therville - Romain Therville mentioned in commit 96749b1b
mentioned in commit 96749b1b
- Romain Therville mentioned in merge request !99 (merged)
mentioned in merge request !99 (merged)
- Developer
- Romain Therville mentioned in commit 20387d52
mentioned in commit 20387d52
- Romain Therville mentioned in commit 5a55ce55
mentioned in commit 5a55ce55
- Developer
Every AJAX call has been fixed and tested in the last commit.
This issue can be closed.
- Romain Therville closed
closed
- Romain Therville added Unconformity label
added Unconformity label
- Developer
Unconformity issue : investigated immediately.
Please register or sign in to reply