Skip to content

Commit 45f376e

Browse files
committed
Add support for material_type
1 parent 60a7f1b commit 45f376e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cloudapp/src/app/main/request.service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ export class RequestService {
2323
};
2424
Object.keys(request).forEach(function(key){
2525
console.log(key);
26-
console.log(key + ' - ' + request.key);
27-
if(key in ["target_destination","material_type","destination_location","call_number_type","item_policy"]){
26+
console.log(key + ' - ' + request[key]);
27+
if(["target_destination","material_type","destination_location","call_number_type","item_policy"].includes(key)){
28+
requestBoday[key] = {};
2829
requestBoday[key]['value'] = request[key]
2930
}else if (key === 'user_id'){
3031
requestBoday['user_primary_id']=request['user_id'];

0 commit comments

Comments
 (0)