diff options
| author | cedricnjanga | 2018-01-24 19:55:56 -0800 |
|---|---|---|
| committer | cedricnjanga | 2018-02-06 11:21:37 -0800 |
| commit | 5e7506b377ea13ee5326371fb4ac9e592252cf37 (patch) | |
| tree | 4d3971c53b4f547a2e738de71e570b68fbec340a | |
| parent | b4ea175349adaffe4c797c7077865b2dd1c0fc20 (diff) | |
| download | chouette-core-5e7506b377ea13ee5326371fb4ac9e592252cf37.tar.bz2 | |
update calendar build_links for table builder
| -rw-r--r-- | app/controllers/calendars_controller.rb | 1 | ||||
| -rw-r--r-- | app/helpers/table_builder_helper/url.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb index 925e88e41..aa79c3cf8 100644 --- a/app/controllers/calendars_controller.rb +++ b/app/controllers/calendars_controller.rb @@ -1,4 +1,5 @@ class CalendarsController < ChouetteController + include WorkgroupSupport include PolicyChecker include TimeTablesHelper diff --git a/app/helpers/table_builder_helper/url.rb b/app/helpers/table_builder_helper/url.rb index 57172301c..0e3dce0aa 100644 --- a/app/helpers/table_builder_helper/url.rb +++ b/app/helpers/table_builder_helper/url.rb @@ -3,7 +3,7 @@ module TableBuilderHelper def self.polymorphic_url_parts(item, referential, workgroup) polymorph_url = [] - unless item.is_a?(Referential) || item.is_a?(ComplianceControlSet) + unless item.is_a?(Calendar) || item.is_a?(Referential) || item.is_a?(ComplianceControlSet) if referential polymorph_url << referential polymorph_url << item.line if item.respond_to? :line |
