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

Debug notices when viewing user posts

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Login as a user who has created discussions and forum posts
      2. Go to user profile
      3. click on My profile > Forum posts > Posts
      4. click on My profile > Forum posts > discussions
      5. Make sure no error/notices are seen
      Show
      Login as a user who has created discussions and forum posts Go to user profile click on My profile > Forum posts > Posts click on My profile > Forum posts > discussions Make sure no error/notices are seen
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-45409-master

      Description

      To replicate:-

      1. Go to a user profile
      2. click on forum posts > post
        Notice similar to below will be shown

        $cm->availablefrom and $cm->availableuntil have been deprecated. This information is no longer available as the system provides more complex options (for example, there might be different dates for different users).
         
            line 1831 of /lib/modinfolib.php: call to debugging()
            line 1176 of /lib/modinfolib.php: call to cm_info->get_deprecated_available_date()
            line 1197 of /lib/modinfolib.php: call to cm_info->__get()
            line 8379 of /mod/forum/lib.php: call to cm_info->getIterator()
            line 128 of /mod/forum/user.php: call to forum_get_posts_by_user()
         
        $cm->showavailability property has been deprecated. You can replace it by checking if $cm->availableinfo has content.
         
            line 1816 of /lib/modinfolib.php: call to debugging()
            line 1176 of /lib/modinfolib.php: call to cm_info->get_show_availability()
            line 1197 of /lib/modinfolib.php: call to cm_info->__get()
            line 8379 of /mod/forum/lib.php: call to cm_info->getIterator()
            line 128 of /mod/forum/user.php: call to forum_get_posts_by_user()
         
        $cm->availablefrom and $cm->availableuntil have been deprecated. This information is no longer available as the system provides more complex options (for example, there might be different dates for different users).
         
            line 1831 of /lib/modinfolib.php: call to debugging()
            line 1176 of /lib/modinfolib.php: call to cm_info->get_deprecated_available_date()
            line 1197 of /lib/modinfolib.php: call to cm_info->__get()
            line 8379 of /mod/forum/lib.php: call to cm_info->getIterator()
            line 128 of /mod/forum/user.php: call to forum_get_posts_by_user()

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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