aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2018-05-22 11:36:48 -0700
committerJohan Van Ryseghem2018-05-23 09:25:37 +0200
commit6cb7f16246db07f36c49b76693d92423f15340e1 (patch)
tree75b5b8e32ad5fddf2a4aa378ba5c4ed29c12bede
parent155b6d4638e1b36b869b7a18b08e47121b585a7d (diff)
downloadchouette-core-6cb7f16246db07f36c49b76693d92423f15340e1.tar.bz2
Refs #6827 Display short_id on companies#show
-rw-r--r--app/views/companies/show.html.slim2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/companies/show.html.slim b/app/views/companies/show.html.slim
index 8960b92dd..6335d88da 100644
--- a/app/views/companies/show.html.slim
+++ b/app/views/companies/show.html.slim
@@ -6,7 +6,7 @@
.container-fluid
.row
.col-lg-6.col-md-6.col-sm-12.col-xs-12
- - attributes = { t('id_codif') => @company.try(:objectid).try(:local_id),
+ - attributes = { t('id_codif') => @company.get_objectid.try(:short_id),
Chouette::Company.human_attribute_name(:phone) => @company.phone,
Chouette::Company.human_attribute_name(:email) => @company.email,
Chouette::Company.human_attribute_name(:url) => @company.url }