From 2f34bb5aa8f2221841bada23a5b9ead7f6c55179 Mon Sep 17 00:00:00 2001 From: nandar Date: Mon, 20 Aug 2018 19:22:59 +0630 Subject: [PATCH] user id update in batch create --- app/controllers/batches_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/batches_controller.rb b/app/controllers/batches_controller.rb index dcf3b7e..e7e884a 100644 --- a/app/controllers/batches_controller.rb +++ b/app/controllers/batches_controller.rb @@ -35,7 +35,7 @@ class BatchesController < ApplicationController adult_or_child=params[:adult_or_child] client_id=params[:client_id] product_category_id=params[:product_category_id] - @batch = Batch.create_batch(date,order_ref,2,"adult_or_child",client_id,product_category_id) + @batch = Batch.create_batch(date,order_ref,current_member.id,"adult_or_child",client_id,product_category_id) respond_to do |format| if @batch.save