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

Equella repository incorrectly obtains/formats custom profile fields

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • Hide
      1. Log in as admin
      2. Navigate to Plugins > Filters > Manage filters in site administration
      3. Turn Multi-language content on and apply to Content and headings
      4. Navigate to Users > Accounts > User profile fields in site administration
      5. Create a new new Checkbox field (form values don't matter)
      6. Create a new Text input field:
        • Short name: myfield
        • Name:

          <span class="multilang" lang="en">Field (EN)</span><span class="multilang" lang="de">Field (DE)</span>
          

      7. Navigate to Plugins > Repositories > Manage repositories in site administration
      8. Enable the Equella repository and press Save
      9. Press Settings for the Equella repository
      10. Press Create a repository instance
      11. Open the Equella userfield select field
        • Confirm it contains only the text custom field (e.g. the checkbox custom field isn't present)
        • Confirm the text custom field is named Field (EN) (e.g. the multilanguage filter is applied)
      12. Inspect the Equella userfield select field with your browser DOM inspector
      13. Confirm the custom field option value is "myfield"
      Show
      Log in as admin Navigate to Plugins > Filters > Manage filters in site administration Turn Multi-language content on and apply to Content and headings Navigate to Users > Accounts > User profile fields in site administration Create a new new Checkbox field (form values don't matter) Create a new Text input field: Short name: myfield Name: <span class="multilang" lang="en">Field (EN)</span><span class="multilang" lang="de">Field (DE)</span> Navigate to Plugins > Repositories > Manage repositories in site administration Enable the Equella repository and press Save Press Settings for the Equella repository Press Create a repository instance Open the Equella userfield select field Confirm it contains only the text custom field (e.g. the checkbox custom field isn't present) Confirm the text custom field is named Field (EN) (e.g. the multilanguage filter is applied) Inspect the Equella userfield select field with your browser DOM inspector Confirm the custom field option value is "myfield"

      This is from MDL-79959 for 4.4, hence setting Must fix for this one too

      There are a couple of issues in the custom profile field handling:

      1. It was established in MDL-71051 that retrieving custom profile fields must always use the provided API rather than querying the DB directly (for performance, etc, but also because we rely on that in Workplace for cross-tenant functionality);
      2. The field names are not correctly formatted:

            pholden Paul Holden
            pholden Paul Holden
            Stevani Andolo Stevani Andolo
            Ilya Tregubov Ilya Tregubov
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            4 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, 12 minutes
                1h 12m

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