Event field blank

Aperta
#215 3 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
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
backend, frontend

Direzione di ricerca

Start with admin/tool/trigger/edit.php, especially the code around line 71 that builds the Event field; the reported warnings point to missing or null entries in that data. Reproduce by creating or editing a workflow on Moodle 4.3 and check whether the Event field is populated. Done means the field lists usable events and the warnings no longer appear.

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

Descrizione

I'm getting a strange issue with the Event to monitor field, as it is blank!

This occurs both when I create a new workflow, or try to edit one of the examples provided (which are really helpful). When I upload one of the examples, they run fine.

Blank-event-field-in-plugin

I want to watch for when someone pays, then add them to our payer cohort. Just trying to avoid having to write out the json manually.

Running Moodle 4.3
Event Trigger version: 2021030400
Tried on Chrome, Safari and Firefox.

In debug mode, I see a bunch of warnings like:

  • Warning: Undefined array key "Reports" in /var/www/html/moodle/admin/tool/trigger/edit.php on line 71
  • Warning: Undefined array key "Quiz / Access rules" in /var/www/html/moodle/admin/tool/trigger/edit.php on line 71
  • Warning: foreach() argument must be of type array|object, null given in /var/www/html/moodle/admin/tool/trigger/edit.php on line 71
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.