Fix move-to form to avoid errors when moving files with two tabs in two different courses at the same time - refs CT#7438

1.10.x
Yannick Warnier 11 years ago
parent 9c6076f2ce
commit c7d0528744
  1. 6
      main/inc/lib/document.lib.php

@ -5627,7 +5627,7 @@ class DocumentManager
*/ */
public static function build_move_to_selector($folders, $curdirpath, $move_file, $group_dir = '') public static function build_move_to_selector($folders, $curdirpath, $move_file, $group_dir = '')
{ {
$form = new FormValidator('move_to', 'post', api_get_self()); $form = new FormValidator('move_to', 'post', api_get_self().'?'.api_get_cidreq());
// Form title // Form title
$form->addElement('hidden', 'move_file', $move_file); $form->addElement('hidden', 'move_file', $move_file);
@ -5711,8 +5711,8 @@ class DocumentManager
} }
} }
$form->addElement('select', 'move_to', get_lang('MoveTo'), $options); $form->addElement('select', 'move_to', get_lang('MoveTo'), $options);
$form->addElement('button', 'move_file_submit', get_lang('MoveElement')); $form->addButtonNext(get_lang('MoveElement'), 'move_file_submit');
return $form->return_form(); return $form->returnForm();
} }
/** /**

Loading…
Cancel
Save