Redirect to QBO Sync after Authentication & reverse item order

This commit is contained in:
2016-01-09 23:13:24 -05:00
parent 6d357f27f9
commit b9e5ace6cd
3 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ class QboController < ApplicationController
qbo.reconnect_token_at = 5.months.from_now.utc
qbo.realmId = realm_id
if qbo.save!
redirect_to plugin_settings_path(:redmine_qbo), :flash => { :notice => "Successfully connected to Quickbooks" }
redirect_to qbo_sync_path, :flash => { :notice => "Successfully connected to Quickbooks" }
else
redirect_to plugin_settings_path(:redmine_qbo), :flash => { :error => "Error" }
end