Moodle

Javascript error of form validation on scorm add/edit page.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.7
  • Fix Version/s: 1.8.7, 1.9.3
  • Component/s: SCORM
  • Labels:
    None
  • Environment:
    This bug has no issue with OS or browser.
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_17_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

When we add a scorm there is a javascript error on that page. this error is on Packege File element of page. Because element name is reference[value] while when validation function called to validate it it calls it with the name form.elements['reference']. Due to this javascript error comes when we submit the form.

DETAIL:
function validate_mod_scorm_mod_form(frm)

in this function there is call to function validate_mod_scorm_mod_form_reference(frm.elements['reference'])

in this call frm.elements['reference'] is passes as argument while the element name is reference[value]

Issue Links

Activity

Hide
Dan Marsden added a comment -

this is now fixed in 18stable, 19stable, and HEAD, please wait until wednesday for this to appear in the Weekly build available on the download page.

thanks!

Dan

Show
Dan Marsden added a comment - this is now fixed in 18stable, 19stable, and HEAD, please wait until wednesday for this to appear in the Weekly build available on the download page. thanks! Dan

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: