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

View role details page not properly displaying block name for block capabilities.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7.2, 1.8
    • Component/s: Roles / Access
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      The /admin/roles/manage.php page displays a '[blockname]' text string because the get_component_string() function in /lib/accesslib.php is not looking for the correct file when using CONTEXT_BLOCK.

      Here is a patch for the problem (also attached):

      Index: accesslib.php
      ===================================================================
      RCS file: /cvsroot/moodle/moodle/lib/accesslib.php,v
      retrieving revision 1.166.2.30
      diff -u -r1.166.2.30 accesslib.php
      — accesslib.php 5 Dec 2006 07:12:22 -0000 1.166.2.30
      +++ accesslib.php 9 Jan 2007 16:01:11 -0000
      @@ -2706,7 +2706,7 @@
      break;

      case CONTEXT_BLOCK:

      • $string = get_string('blockname', 'block_'.$component.'.php');
        + $string = get_string('blockname', 'block_'.basename($component));
        break;

      default:

        Attachments

          Activity

            People

            Assignee:
            lazyfish Yu Zhang
            Reporter:
            jfilip Justin Filip
            Tester:
            Nobody Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              30/Mar/07