From ccd2581f1a4fb88d2324df190fa58a5c07e2afa0 Mon Sep 17 00:00:00 2001
From: Zog
Date: Fri, 6 Apr 2018 06:59:57 +0200
Subject: Refs #6311; Fix Purchase Windows assignment
---
app/views/autocomplete_purchase_windows/index.rabl | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
(limited to 'app/views')
diff --git a/app/views/autocomplete_purchase_windows/index.rabl b/app/views/autocomplete_purchase_windows/index.rabl
index 1d0287602..bdc513c31 100644
--- a/app/views/autocomplete_purchase_windows/index.rabl
+++ b/app/views/autocomplete_purchase_windows/index.rabl
@@ -2,11 +2,12 @@ collection @purchase_windows, :object_root => false
node do |window|
{
- :id => window.id,
- :name => window.name,
- :objectid => window.objectid,
- :color => window.color,
- :short_id => window.get_objectid.short_id,
- :text => " " + window.name + " - " + window.get_objectid.short_id + ""
+ id: window.id,
+ name: window.name,
+ objectid: window.objectid,
+ color: window.color,
+ short_id: window.get_objectid.short_id,
+ bounding_dates: window.bounding_dates,
+ text: " " + window.name + " - " + window.get_objectid.short_id + ""
}
end
--
cgit v1.2.3