From 6390696ee6f1dd2990d4b11de8743ade6e7ff9b1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 3 Apr 2015 14:19:34 +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 dcdb04013a..585a95d6fb 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -941,6 +941,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)