Project

General

Profile

Bug #5405

Avoid NOW() in add_course.lib.inc.php

Added by Yannick Warnier about 7 years ago. Updated about 4 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
Installation / Migration
Target version:
Start date:
03/09/2012
Due date:
% Done:

100%

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

Description

In the function that creates the demo content (and a few other functions), there are a lot of NOW in use for the SQL queries. This could trigger a considerable confusion when filling a portal. For the first few hours, content could appear as created hours before or after.

Associated revisions

Revision 108a252a (diff)
Added by Yannick Warnier about 4 years ago

Remove remaining now() call in course.lib.php - refs #5405

History

#1

Updated by Julio Montoya almost 7 years ago

  • Target version changed from 1.9.4 to 2.0

I moved the functions from add_course.lib.inc.php to in course.lib.php and install.lib.php, because we have only 1 database structure so the script will be executed only 1 time. This changes were added in the 1.10 branch

#2

Updated by Yannick Warnier about 4 years ago

  • Status changed from New to Bug resolved
  • Assignee set to Yannick Warnier
  • Target version changed from 2.0 to 1.10.0
  • % Done changed from 0 to 100

Fixed last now() in course.lib.php

Also available in: Atom PDF