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

Delete some incorrect "any page" options that should not exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.3, 2.2, 2.3
    • Fix Version/s: STABLE backlog
    • Component/s: Blocks
    • Labels:
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Epic Link:

      Description

      While looking @ MDL-30340 some incorrect "any-page" options were discovered here and there.

      Basically only system/coursecat/course must have such option when the block is being edited at its real-context. When the block is being edited @ any subcontext, the "bring-back" feature will add the option and the end of the list.

      But such "any-page" won't be available in any other plugin/subsystem at all, so system => system "bring back" will not be allowed.

      For more details, see: http://tracker.moodle.org/browse/MDL-30340?focusedCommentId=132766&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-132766

      Summary:

      1. Take rid of the harcoded 'page-x' options @ blog and reports. It only should be shown when the 'bring-back' feature inserts it at the end.
      2. At course/lib and default_page_type_list(), modify the use, so 'page-x' is only added (on top) if editing @ currentcontext = parentcontext. Else, the 'bring-back' feature will insert it (bottom).

      Note, while I see clearly that we should prevent those system => system "bring-backs", MD opines it's worth having them. My point is that not horizontal edition should be allowed at all, so any system page is responsible of editing its pagetypes with all them being exclusive (blog, notes, tags, my, userprofile...).

      Anyway, we agreed to postpone this after 2.2 release, keeping things as they are right now.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: