Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NMRL-337 Error while rejecting an Analysis Request. Unsuccessful AJAX call #155

Merged
merged 1 commit into from
Jul 3, 2017
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
portal portal_url/getPortalObject;
ar python:view.context;
rej_widg python:ar.getRejectionReasons();
reasons python:ar.getRejectionReasons()[0].get('selected',[]) if rej_widg else []
reasons python:ar.getRejectionReasons()[0].get('selected',[]) if rej_widg else [];
lab python:ar.bika_setup.laboratory;">

<tal:multiplereasons condition="python:len(reasons)&gt;1">
Expand Down
3 changes: 3 additions & 0 deletions bika/lims/browser/js/bika.lims.rejection.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@
other_val = $('.rejectionwidget-input-other').val();
}
else{other_ch_val=0;}
}else{
// Just set ch_val '0' if it is false.
ch_val=0;
}
// Gathering all values
var rej_widget_state = {
Expand Down