Skip to content

Commit

Permalink
Fix Drag & Drop for Teacher Corrections in Works
Browse files Browse the repository at this point in the history
  • Loading branch information
jloguercio committed Feb 8, 2016
1 parent 3acf899 commit 939d7c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion main/inc/ajax/model.ajax.php
Expand Up @@ -1650,7 +1650,11 @@ function getWhereClause($col, $oper, $val)
}
$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++;
Expand Down
2 changes: 1 addition & 1 deletion main/work/work.lib.php
Expand Up @@ -2089,7 +2089,7 @@ class="work_correction_file_upload file_upload_small"
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>
Expand Down

0 comments on commit 939d7c5

Please sign in to comment.