mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Added safe_attributes for ProjecT
This commit is contained in:
@@ -11,13 +11,13 @@ $(function() {
|
|||||||
type: "GET",
|
type: "GET",
|
||||||
data: { selected_customer: $("input#issue_customer_id").val() }
|
data: { selected_customer: $("input#issue_customer_id").val() }
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
$("input#project_customer_id").on("change", function() {
|
$("input#project_customer_id").on("change", function() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/filter_vehicles_by_customer",
|
url: "/filter_vehicles_by_customer",
|
||||||
type: "GET",
|
type: "GET",
|
||||||
data: { selected_customer: $("input#project_customer_id").val() }
|
data: { selected_customer: $("input#project_customer_id").val() }
|
||||||
});
|
});
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
4
init.rb
4
init.rb
@@ -43,7 +43,9 @@ Redmine::Plugin.register :redmine_qbo do
|
|||||||
Issue.safe_attributes 'vehicles_id'
|
Issue.safe_attributes 'vehicles_id'
|
||||||
User.safe_attributes 'qbo_employee_id'
|
User.safe_attributes 'qbo_employee_id'
|
||||||
TimeEntry.safe_attributes 'qbo_billed'
|
TimeEntry.safe_attributes 'qbo_billed'
|
||||||
|
Project.safe_attributes 'customer_id'
|
||||||
|
Project.safe_attributes 'vehicle_id'
|
||||||
|
|
||||||
# We are playing in the sandbox
|
# We are playing in the sandbox
|
||||||
#Quickbooks.sandbox_mode = true
|
#Quickbooks.sandbox_mode = true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user