Project

General

Profile

Bug #3989

Hotpotatoes, 2 entries created in the database + solution

Added by Andre Boivin over 8 years ago. Updated over 8 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
18/10/2011
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

At each quiz HotPotatoes import, there are 2 entries created in the database.

Solution:
Comment lines 112 and 113 in hotpotatoes.php ( duplicated lines)

$fld = GenerateHpFolder($document_sys_path.$uploadPath.'/');
// $doc_id = add_document($_course, '/HotPotatoes_files/'.$fld, 'folder', 0, $fld);
// api_item_property_update($_course, TOOL_DOCUMENT, $doc_id, 'FolderCreated', api_get_user_id());
@mkdir($document_sys_path.$uploadPath.'/'.$fld, api_get_permissions_for_new_directories());
$doc_id = add_document($_course, '/HotPotatoes_files/'.$fld, 'folder', 0, $fld);
api_item_property_update($_course, TOOL_DOCUMENT, $doc_id, 'FolderCreated', api_get_user_id());

Associated revisions

Revision c871d04d (diff)
Added by Julio Montoya over 8 years ago

Fixes bug in Hotpotatoes, 2 entries created in the database see #3989 reported and fixed by Andre Boivin

History

#1

Updated by Julio Montoya over 8 years ago

  • Status changed from New to Bug resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF