Skip to content

Commit

Permalink
Fixed dashboard issue that showed both failed/non-failed orders.
Browse files Browse the repository at this point in the history
  • Loading branch information
brockf committed Sep 17, 2013
1 parent e2f0c89 commit 58208d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/admincp/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function activity () {
->select('orders.timestamp')
->select('orders.subscription_id')
->from('orders')
->where('orders.status','1')
->join('users','users.customer_id = orders.customer_id')
->order_by('orders.timestamp','DESC')
->limit(10)
Expand Down Expand Up @@ -181,7 +182,7 @@ function activity () {
->select('subscriptions.timestamp')
->from('subscriptions')
->join('users','users.customer_id = subscriptions.customer_id')
->join('plans','plans.plan_id = subscriptions.plan_id')
->join('plans','plans.plan_id','subscriptions.plan_id')
->order_by('subscriptions.timestamp','DESC')
->limit(10)
->get();
Expand Down

0 comments on commit 58208d1

Please sign in to comment.