Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-25873

When adding a new Lesson "Content page", the "save page" button label wrongly says "Add a question page"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Lesson
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      When adding a new Lesson "Content page", the "save page" button label wrongly says "Add a question page".
      I suggest the following fix to display "Add a content page" when we are adding a Content page.
      file mod/lesson/locallib.php line 738:

      if ($this->qtype == LESSON_PAGE_BRANCHTABLE)

      { $stradd = 'addbranchtable'; }

      else

      { $stradd = 'addaquestionpage'; }

      $this->add_action_buttons(get_string('cancel'), get_string($stradd, 'lesson'));

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              rezeau Joseph Rézeau
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              7 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: