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

Mobile app course colors does not match 3.8 customised card colors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8
    • Fix Version/s: 3.8
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-67246-master

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/19

                  Time Tracking

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