order product fixes

This commit is contained in:
2012-12-07 16:49:23 +01:00
parent 118afb7da9
commit b5ddd448b2
3 changed files with 6 additions and 6 deletions
+2 -1
View File
@@ -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