Fix Drag & Drop for Teacher Corrections in Works

1.10.x
José Loguercio 9 years ago
parent 3acf899995
commit 939d7c5294
  1. 6
      main/inc/ajax/model.ajax.php
  2. 2
      main/work/work.lib.php

@ -1650,7 +1650,11 @@ if (in_array($action, $allowed_actions)) {
}
$array = array();
foreach ($columns as $col) {
$array[] = isset($row[$col]) ? Security::remove_XSS($row[$col]) : '';
if ($col == 'correction') {
$array[] = isset($row[$col]) ? $row[$col] : '';
} else {
$array[] = isset($row[$col]) ? Security::remove_XSS($row[$col]) : '';
}
}
$response->rows[$i]['cell']=$array;
$i++;

@ -2089,7 +2089,7 @@ function get_work_user_list(
action="'.api_get_path(WEB_AJAX_PATH).'work.ajax.php?'.api_get_cidreq().'&a=upload_correction_file&item_id='.$item_id.'" method="POST" enctype="multipart/form-data"
>
<div class="button-load">
'.get_lang('ClickOrDropFilesHere').'
'.get_lang('ClickOrDropOneFileHere').'
</div>
<input type="file" name="file" multiple>
<button type="submit"></button>

Loading…
Cancel
Save