File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function showForm(array $options): void {
5555
5656 $ this ->question ->fields ['_tree_root ' ] = $ decodedValues ['show_tree_root ' ] ?? Dropdown::EMPTY_VALUE ;
5757 $ this ->question ->fields ['_tree_root_selectable ' ] = $ decodedValues ['selectable_tree_root ' ] ?? '0 ' ;
58- $ this ->question ->fields ['_tree_max_depth ' ] = $ decodedValues ['show_tree_depth ' ] ?? Dropdown:: EMPTY_VALUE ;
58+ $ this ->question ->fields ['_tree_max_depth ' ] = $ decodedValues ['show_tree_depth ' ] ?? ' 0 ' ;
5959 $ this ->question ->fields ['_entity_restrict ' ] = $ decodedValues ['entity_restrict ' ] ?? self ::ENTITY_RESTRICT_FORM ;
6060 $ this ->question ->fields ['_is_tree ' ] = '0 ' ;
6161 $ this ->question ->fields ['_is_entity_restrict ' ] = '0 ' ;
Original file line number Diff line number Diff line change @@ -1151,6 +1151,7 @@ var plugin_formcreator = new function() {
11511151
11521152 this . newTranslation = function ( formLanguageId ) {
11531153 glpi_ajax_dialog ( {
1154+ dialogclass : 'modal-xl' ,
11541155 url : '../ajax/form_language.php' ,
11551156 params : {
11561157 action : 'newTranslation' ,
@@ -1176,6 +1177,11 @@ var plugin_formcreator = new function() {
11761177 } ) . fail ( function ( ) {
11771178 displayAjaxMessageAfterRedirect ( ) ;
11781179 } ) . done ( function ( ) {
1180+ // Remove unclosed TinyMCE toolbar
1181+ var tinyToolbar = document . querySelector ( '.tox-tinymce-aux' ) ;
1182+ if ( tinyToolbar ) {
1183+ tinyToolbar . parentNode . removeChild ( tinyToolbar ) ;
1184+ }
11791185 that . showTranslationEditor ( form ) ;
11801186 } ) ;
11811187 } ;
Original file line number Diff line number Diff line change 105105
106106 {{ fields.numberField (
107107 ' show_tree_depth' ,
108- item .fields ['_show_tree_depth ' ],
108+ item .fields ['_tree_max_depth ' ],
109109 __(' Limit subtree depth' , ' formcreator' ), {
110110 label_class : ' col-xxl-4' ,
111111 input_class : ' col-xxl-8' ,
You can’t perform that action at this time.
0 commit comments