From 7c9d62c280072dfcb2e7d612951760cf46d3a233 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 26 Jun 2019 14:51:45 +0200 Subject: [PATCH] FIX: prevents failure when TL was mutated on internal object (#7808) --- app/assets/javascripts/admin/templates/user-index.hbs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/templates/user-index.hbs b/app/assets/javascripts/admin/templates/user-index.hbs index 32d3914da50..8617ff29c5c 100644 --- a/app/assets/javascripts/admin/templates/user-index.hbs +++ b/app/assets/javascripts/admin/templates/user-index.hbs @@ -367,7 +367,11 @@
{{i18n "trust_level"}}
- {{combo-box content=site.trustLevels value=model.trust_level nameProperty="detailedName"}} + {{combo-box + content=site.trustLevels + value=model.trustLevel.id + nameProperty="detailedName"}} + {{#if model.dirty}}
{{d-button class="ok no-text" action=(action "saveTrustLevel") icon="check"}}