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

Page course/info.php uses deprecated string and displays inconsistent contents for enrol_fee

XMLWordPrintable

      While working on MDL-84139 I came over a method enrol_plugin::get_description_text() that was only overridden in enrol_fee and it was only used on course/info.php

      So I looked further and found that:

      • course/info.php is an ugly page that is hard to find (you have to have some strange combination of settings and course categories)
      • it uses deprecated string 'summaryof', 'moodle'
      • it calls method enrol_plugin::get_description_text() from all plugins and is only overridden in enrol_fee, the information from the callback is displayed ABOVE the course data
      • in case of enrol_fee it displays the payment buttons that make the page even uglier. It may also be not relevant, if the user is already enrolled, for example

      I suggest to:

      • remove the method get_description_text() from enrol_fee plugin
      • fix usage of deprecated string (un-deprecate or replace with another one)
      • consider dropping course/info.php page completely (which means removing couple of methods from enrol api too)

        1. (1) 7 Passed -- (Main)MDL-84192.png
          208 kB
          Kim Jared Lucas
        2. courseinfo.png
          63 kB
          Marina Glancy

            pholden Paul Holden
            marina Marina Glancy
            Ivan Stankovic Ivan Stankovic
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 7 hours, 14 minutes
                2d 7h 14m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.