Fixing bug when selecting option uploading files -refs #6863

1.9.x
unknown 11 years ago
parent 27ef038ee7
commit 36131ba873
  1. 6
      main/document/upload.php
  2. 2
      main/inc/ajax/document.ajax.php

@ -252,9 +252,9 @@ if (api_get_setting('search_enabled') == 'true') {
$form->addElement('html', '</div>');
}
$form->addElement('radio', 'if_exists', get_lang('UplWhatIfFileExists'), get_lang('UplDoNothing'), 'nothing');
$form->addElement('radio', 'if_exists', '', get_lang('UplOverwriteLong'), 'overwrite');
$form->addElement('radio', 'if_exists', '', get_lang('UplRenameLong'), 'rename');
$form->addElement('html', '<label><input type="radio" name="if_exists" value="nothing"/>&nbsp;'.get_lang('UplDoNothing').'</label>');
$form->addElement('html', '<label><input type="radio" name="if_exists" value="overwrite"/>&nbsp;'.get_lang('UplOverwriteLong').'</label>');
$form->addElement('html', '<label><input type="radio" checked="checked" name="if_exists" value="rename"/>&nbsp;'.get_lang('UplRenameLong').'</label>');
// Close the java script and avoid the footer up
$form->addElement('html', '</div>');

@ -33,7 +33,7 @@ switch($action) {
$file['name'],
null,
0,
'overwrite',
$_POST['if_exists'],
false,
false
);

Loading…
Cancel
Save