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

mobilecssurl is not being returned in WebService get_siteinfo function

XMLWordPrintable

    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • 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

      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":""}

            jleyva Juan Leyva
            jleyva Juan Leyva
            Jérôme Mouneyrac Jérôme Mouneyrac
            Damyon Wiese Damyon Wiese
            David Monllaó David Monllaó
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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