add link for oqs in origami
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
class Oqs::EditController < BaseOqsController
|
||||
def index
|
||||
assigned_item_id = params[:id]
|
||||
@link_type = params[:type]
|
||||
@dining_type = nil
|
||||
if params[:type] != 'oqs'
|
||||
dining = DiningFacility.find_by_id(params[:type])
|
||||
@dining_type = dining.type
|
||||
end
|
||||
assigned_item = AssignedOrderItem.find(assigned_item_id)
|
||||
@order_item = OrderItem.where("order_id='#{ assigned_item.order_id }' AND item_instance_code='#{ assigned_item.instance_code }'");
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user