order product fixes
This commit is contained in:
@@ -254,9 +254,10 @@ class UserController < ApplicationController
|
||||
if list.present?
|
||||
@list = list
|
||||
else
|
||||
render json: js_alert('table_not_found') and return unless params[:table_id].present?
|
||||
@table = Table.find(params[:table_id])
|
||||
if @table.occupied?
|
||||
#TODO handle placint order on occupied table
|
||||
render json: js_alert('table_is_occupied')
|
||||
else
|
||||
if @list = List.from_table( @table, current_user )
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user