diff --git a/app/controllers/qbo_controller.rb b/app/controllers/qbo_controller.rb index fec800b..2cf74bf 100644 --- a/app/controllers/qbo_controller.rb +++ b/app/controllers/qbo_controller.rb @@ -22,8 +22,11 @@ class QboController < ApplicationController :access_token_path => "/oauth/v1/get_access_token" }) - + # + # Called when the QBO Top Menu us shown + # def index + @qbo_customer_count = QboCustomers.count end # @@ -82,6 +85,6 @@ class QboController < ApplicationController } end - redirect_to plugin_settings_path(:redmine_qbo), :flash => { :notice => "Successfully synced to Quickbooks" } + redirect_to qbo_path(:redmine_qbo), :flash => { :notice => "Successfully synced to Quickbooks" } end end diff --git a/app/views/qbo/index.html.erb b/app/views/qbo/index.html.erb index 20e6aae..7d65bad 100644 --- a/app/views/qbo/index.html.erb +++ b/app/views/qbo/index.html.erb @@ -12,6 +12,12 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
-