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

Mobile app course colors does not match 3.8 customised card colors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.8
    • 3.8
    • Administration
    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • MDL-67246-master
    • Hide
      1. As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      2. Create a Token in the mobile app service for any user in the site (not an admin account)
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      3. Open the console an execute this new curl request, replacing wstoken with the token you just created and the site url with yours.

        curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=3af67232a7596ceb658df4db329e5ad6' | python -m "json.tool"

      4. Confirm that:
        • In the curl request response you see the fields core_admin_coursecolorX (X in the range 1 to 10)
        • The values matches the ones in Moodle web Site Administration -> Appearance -> Course card colors
      5. Now, as admin change in the Moodle web site any of the colors
      6. Execute again the CURL request and:
        • Confirm that the values of the colors matches the ones you changed
      Show
      As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings Create a Token in the mobile app service for any user in the site (not an admin account) Click on Site administration ► Plugins ► Web services ► Manage tokens Open the console an execute this new curl request, replacing wstoken with the token you just created and the site url with yours. curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=3af67232a7596ceb658df4db329e5ad6' | python -m "json.tool" Confirm that: In the curl request response you see the fields core_admin_coursecolorX (X in the range 1 to 10) The values matches the ones in Moodle web Site Administration -> Appearance -> Course card colors Now, as admin change in the Moodle web site any of the colors Execute again the CURL request and: Confirm that the values of the colors matches the ones you changed

      MDL-63612 introduced a new setting to enable admins to specify the default course card colors.

      There is no way to get that information for external clients so the colors displayed in external clients like the app will be inconsistent

            jleyva Juan Leyva
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Jun Pataleta Jun Pataleta
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 10 minutes
                1h 10m

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