From fd435043ad5c697fc977fdab569ded3574c09106 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 3 Apr 2015 14:20:19 +0000 Subject: [PATCH] fixed not shown readonly value for numerical values --- etemplate/js/et2_widget_selectbox.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index 2e20a90c57..2c88d6fa77 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -1149,6 +1149,11 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM], { _value = _value.match(this._is_multiple_regexp) !== null ? _value.split(',') : [_value]; } + // need to handle numerical values too + else if (typeof _value == 'number') + { + _value = [_value]; + } this.span.empty(); if(_value)