aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haddad2017-03-03 14:35:54 +0100
committerThomas Haddad2017-03-03 14:35:54 +0100
commitf1fd7b26ed4f54abcb7304a4aaa2bb7d5a2dcb14 (patch)
tree5598700926e37370910fd53e8ea1ce7921e53ef5
parentc25553756c018b8ce827e11dfaf613744b3659d8 (diff)
downloadchouette-core-f1fd7b26ed4f54abcb7304a4aaa2bb7d5a2dcb14.tar.bz2
Fix time_tables attributes in rabl
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com> Signed-off-by: Xinhui Xu <xinhui.xu@af83.com>
-rw-r--r--app/views/autocomplete_time_tables/index.rabl2
-rw-r--r--app/views/vehicle_journeys/show.rabl2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/autocomplete_time_tables/index.rabl b/app/views/autocomplete_time_tables/index.rabl
index 0389c26b0..8ec7b314e 100644
--- a/app/views/autocomplete_time_tables/index.rabl
+++ b/app/views/autocomplete_time_tables/index.rabl
@@ -1,7 +1,7 @@
collection @time_tables, :object_root => false
node do |time_table|
- { :id => time_table.id, :comment => time_table.comment,
+ { :id => time_table.id, :comment => time_table.comment, :objectid => time_table.objectid,
:time_table_bounding => time_table.presenter.time_table_bounding,
:composition_info => time_table.presenter.composition_info,
:tags => time_table.tags.join(','),
diff --git a/app/views/vehicle_journeys/show.rabl b/app/views/vehicle_journeys/show.rabl
index 209b8371d..620b6430e 100644
--- a/app/views/vehicle_journeys/show.rabl
+++ b/app/views/vehicle_journeys/show.rabl
@@ -9,7 +9,7 @@ child(:journey_pattern) do |journey_pattern|
end
child(:time_tables, :object_root => false) do |time_tables|
- attributes :objectid, :comment
+ attributes :id, :objectid, :comment
child(:calendar) do
attributes :id, :name, :date_ranges, :dates, :shared
end