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

Book module do not display icon for book and chapter print

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.3, 2.3
    • Component/s: Book
    • Labels:
      None
    • Testing Instructions:
      Hide

      No testing instructions

      Show
      No testing instructions
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE

      Description

      Book module do not display icon for book and chapter print. Acctually these icon are generated but the browser do not display them becasuse they are overlayed but "Turn editing on" list item.
      The solution is to edit book/tool/print/ and change the empty string parameter on lines 51 and 53 to something meaningfull. I suggest folowing changes to lib.php code.

      line 51
      $booknode->add(get_string('printbook', 'booktool_print'), $action, navigation_node::TYPE_SETTING, null, null, new pix_icon('book', '', 'booktool_print', array('class'=>'icon')));

      line 53
      $booknode->add(get_string('printchapter', 'booktool_print'), $action, navigation_node::TYPE_SETTING, null, null, new pix_icon('chapter', '', 'booktool_print', array('class'=>'icon')));

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            petko81 Peter Svec
            Participants:
            Component watchers:
            David Jones, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/May/12