Fixed bug order.profit calculation.
Order.profit will also be saved, when order is closed.
This commit is contained in:
parent
843e4a7233
commit
da08365816
32 changed files with 408 additions and 34 deletions
|
|
@ -80,7 +80,7 @@ class ApplicationController < ActionController::Base
|
|||
if !(user = current_user)
|
||||
# No user at all: redirect to login page.
|
||||
self.return_to = request.request_uri
|
||||
redirect_to :controller => 'login'
|
||||
redirect_to :controller => '/login'
|
||||
return false
|
||||
else
|
||||
# We have an authenticated user, now check role...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue