Moodle
  1. Moodle
  2. MDL-25564

Comments do not display on database when javascript disabled (fix included)

    Details

    • Affected Branches:
      MOODLE_20_STABLE
    • Rank:
      9797

      Description

      Switch off javascript
      View a database entry
      Click on 'Show comments'

      Expected result: comments shown for that entry
      Actual result: switches back to list view for that database activity

      Reason: $PAGE->url set incorrectly

      Fix:
      Find the $PAGE->set_url line in mod/data/view.php and change it to:

      $urlparams = array('d' => $data->id);
      if ($record)

      { $urlparams['rid'] = $record->id; }

      if ($page)

      { $urlparams['page'] = $page; }

      if ($mode)

      { $urlparams['mode'] = $mode; }

      if ($filter)

      { $urlparams['filter'] = $filter; }

      $PAGE->set_url('/mod/data/view.php', $urlparams);

        Activity

        Davo Smith created issue -
        Dongsheng Cai made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Martin Dougiamas made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        QA Assignee nobody
        Martin Dougiamas made changes -
        Workflow jira [ 40713 ] MDL Workflow [ 66331 ]
        Martin Dougiamas made changes -
        Workflow MDL Workflow [ 66331 ] MDL Full Workflow [ 95734 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: