Moodle
  1. Moodle
  2. MDL-3703

HTML block showing header when is no title

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.9.7
    • Component/s: Blocks
    • Labels:
      None
    • Environment:
      All
    • URL:
      cvs: /blocks/html/block_html.php
    • Affected Branches:
      MOODLE_15_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE
    • Rank:
      27601

      Description

      The HTML block that is part of the standard distro from 1.5 onwards shows a header area in the block when there is no title to display.

      I believe the header bar should be hidden completely when the config has not had a title set.

      To fix the problem the following code needs to be added to the file /blocks/html/block_html.php

      function hide_header() {

      if ($this->config->title == )

      { return true; }

      else

      { return false; }

      }

        Activity

        Show
        Teresa Gibbison added a comment - Discussion http://moodle.org/mod/forum/discuss.php?d=124888#p548375
        Hide
        Dan Poltawski added a comment -

        This has been fixed in 2.0. Investigating a 1.9 fix now

        Show
        Dan Poltawski added a comment - This has been fixed in 2.0. Investigating a 1.9 fix now
        Hide
        Dan Poltawski added a comment -

        I've fixed this in CVS for 1.9

        Show
        Dan Poltawski added a comment - I've fixed this in CVS for 1.9
        Hide
        Rossiani Wijaya added a comment -

        the CVS commit works well with my 1.9.6 version

        Thanks for fixing this Dan.

        Rosie

        Show
        Rossiani Wijaya added a comment - the CVS commit works well with my 1.9.6 version Thanks for fixing this Dan. Rosie
        Hide
        Helen Foster added a comment -

        Dan, thanks for fixing this issue.

        Show
        Helen Foster added a comment - Dan, thanks for fixing this issue.

          People

          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: