Custom user profile fields with same name as core fields cannot be selected correctly

Aperta
#169 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
43/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

Start by tracing the user lookup fields for a created user action and compare how core email and custom profile fields are named in the field list. The issue gives no file or test path, so locate the lookup entry point and its tests first. Done means both fields can be selected distinctly, with the custom field using a profile_field_ prefix.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Moodle 3.10.9
tool_trigger: 2021030405

On the site this is being observed, there is a custom user profile field with a short name of "email". When you see that value in other places on the site (ldap config, saml2 config, etc), the name shows as field_map_profile_field_email vs the core email field of field_map_email.

In tool trigger, after doing a user lookup on a user created action and giving it a prefix of createduser_, you are given a list of fields that includes createduser_email twice and it seems like the action will use the core field.

Would it be possible to append the custom profile fields with profile_field_ or similar to match other Moodle functionality so both fields can be used?

Lingua principale
PHP
Stelle
46
Fork
29
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di catalyst/moodle-tool_trigger

Tutte le issue di catalyst/moodle-tool_trigger

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.