diff --git a/main/document/document.php b/main/document/document.php index 3df28ca9c9..7eeb68a256 100755 --- a/main/document/document.php +++ b/main/document/document.php @@ -1975,8 +1975,7 @@ if (!$is_certificate_mode && !isset($_GET['move'])) { $selector = DocumentManager::build_directory_selector( $folders, $document_id, - (isset($group_properties['directory']) ? $group_properties['directory'] : array()), - true + (isset($group_properties['directory']) ? $group_properties['directory'] : array()) ); } diff --git a/main/inc/lib/document.lib.php b/main/inc/lib/document.lib.php index f856fe2910..0d41edc711 100755 --- a/main/inc/lib/document.lib.php +++ b/main/inc/lib/document.lib.php @@ -5200,11 +5200,6 @@ class DocumentManager $attributes ); - if ($change_renderer) { - $renderer = $form->defaultRenderer(); - $renderer->setElementTemplate('{label} : {element} ', 'curdirpath'); - } - // Group documents cannot be uploaded in the root if (empty($group_dir)) { $parent_select->addOption(get_lang('Documents'), '/');