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

mobilecssurl is not being returned in WebService get_siteinfo function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4, 2.5
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      Hide

      Go to Site administration / ► Plugins / ► Web services / ► Mobile

      Add a valid url in the mobilecssurlfield

      For testing the WS:

      Use this client:
      https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-REST

      functionname
      moodle_webservice_get_siteinfo

      no parameters

      Check that in the WS returned information the field mobilecssurl is filled correctly

      Show
      Go to Site administration / ► Plugins / ► Web services / ► Mobile Add a valid url in the mobilecssurlfield For testing the WS: Use this client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-REST functionname moodle_webservice_get_siteinfo no parameters Check that in the WS returned information the field mobilecssurl is filled correctly
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Go to Site administration / ► Plugins / ► Web services / ► Mobile

      Add a valid url in the mobilecssurlfield

      Call the get_siteinfo WS function, in the result you will notice that mobilecssurl field is empty:

      {"sitename":"XXXX","username":"student01","firstname":"Student","lastname":"Demo","fullname":"Student Demo","lang":"en","userid":3,"siteurl":"http:\/\/xxxx\/moodle24","userpictureurl":"http:\/\/xxxx\/moodle24\/pluginfile.php\/19\/user\/icon\/f1","functions":[

      {"name":"moodle_enrol_get_users_courses","version":"2012120300.06"}

      ,

      {"name":"moodle_enrol_get_enrolled_users","version":"2012120300.06"}

      ,

      {"name":"moodle_user_get_users_by_id","version":"2012120300.06"}

      ,

      {"name":"moodle_webservice_get_siteinfo","version":"2012120300.06"}

      ,

      {"name":"moodle_notes_create_notes","version":"2012120300.06"}

      ,

      {"name":"moodle_user_get_course_participants_by_id","version":"2012120300.06"}

      ,

      {"name":"moodle_user_get_users_by_courseid","version":"2012120300.06"}

      ,

      {"name":"moodle_message_send_instantmessages","version":"2012120300.06"}

      ,

      {"name":"core_course_get_contents","version":"2012120300.06"}

      ,

      {"name":"core_get_component_strings","version":"2012120300.06"}

      ],"downloadfiles":1,"release":"2.4+ (Build: 20121230)","version":"2012120300.06","mobilecssurl":""}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jleyva Juan Leyva
                Reporter:
                jleyva Juan Leyva
                Peer reviewer:
                Jérôme Mouneyrac
                Integrator:
                Damyon Wiese
                Tester:
                David Monllaó
                Participants:
                Component watchers:
                Juan Leyva, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/13