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

Inplace editable WS throws an exception if element is not editable anymore

    XMLWordPrintable

Details

    • WP Sprint 2024-I1.1 (Atlantic)

    Description

      I have an inplace editable element that is only one-way action.

      It is a select element with two values. Transition from A->B is allowed and from B->A is not
      (actual example - appointment booking, teacher can change the "Wait-listed" status into "Booked" but not vice versa)

      So basically it is an editable element but after you edit it, the plugin callback returns an instance of inplace_editable class but with 'editable' property set to false.

      This results in an exception:

      Error in response - Missing following required key in a single structure: editicon
      Error code: invalidresponse
      * line 446 of /lib/external/classes/external_api.php: invalid_response_exception thrown
      * line ? of unknownfile: call to core_external\external_api::clean_returnvalue()
      * line 259 of /lib/external/classes/external_api.php: call to call_user_func()
      * line 88 of /lib/ajax/service.php: call to core_external\external_api::call_external_function()
      

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              Paul Holden Paul Holden
              Jun Pataleta Jun Pataleta
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 25 minutes
                  3h 25m

                  Clockify

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