File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
system/application/views/widgets/edit Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2810,9 +2810,10 @@ isMac = navigator.userAgent.indexOf('Mac OS X') != -1;
2810
2810
var type_display_name = 'Comments' ;
2811
2811
} else if ( opts . types [ t ] == 'users' ) {
2812
2812
var type_display_name = 'Users' ;
2813
- } else {
2813
+ } else if ( scalarapi . model . scalarTypes [ opts . types [ t ] ] ) {
2814
2814
var type_display_name = scalarapi . model . scalarTypes [ opts . types [ t ] ] . plural ;
2815
- type_display_name = type_display_name . charAt ( 0 ) . toUpperCase ( ) + type_display_name . slice ( 1 ) ;
2815
+ } else {
2816
+ var type_display_name = opts . types [ t ] . charAt ( 0 ) . toUpperCase ( ) + opts . types [ t ] . slice ( 1 ) ;
2816
2817
}
2817
2818
2818
2819
$type_selector . append ( '<option value="' + opts . types [ t ] + '">' + type_display_name + '</option>' ) ;
You can’t perform that action at this time.
0 commit comments