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

Improve get_context_from_param

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.5
    • Fix Version/s: BACKEND
    • Component/s: Web Services
    • Labels:

      Description

      From petr's comment on MDL-40039
      "if (empty($fileinfo['contextid']))". I believe this hack should be moved to get_context_from_params(). At the same time the get_context_from_params() should not hardcode the parameter names, there might be multiple context parameters in one external method or they might be named in some other way.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ankit_frenz Ankit Agarwal
              Participants:
              Component watchers:
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: