Moodle

View of html resource not adds in log in certain conditions

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.6.4, 1.6.5, 1.7, 1.7.1, 1.7.2, 1.8, 1.9, 2.0
  • Fix Version/s: 1.7.2, 1.8, 1.9
  • Component/s: Resource
  • Labels:
    None
  • Affected Branches:
    MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

Description

I talk about the display function in the resource_html class definition ( mod/resource/type/html/resource.class.php )

I think it miss a call of the add_to_log function when $resource->popup is true and $inpopup is false.

In any case I think that this function must be call one time, before the first "if" and why not, in the parent::display function ,

Are you agree ?

Issue Links

Activity

Hide
Martin Dougiamas added a comment -

Out to Yu on the wing

Show
Martin Dougiamas added a comment - Out to Yu on the wing
Hide
Yu Zhang added a comment -

Hi, moved the add_to_log call out of the if() clause. Should work now, cheers.

Show
Yu Zhang added a comment - Hi, moved the add_to_log call out of the if() clause. Should work now, cheers.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: