[Bug] `Trying to access array offset on value of type null` when submissions for deleted questions exist

Geschlossen
#3,713 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
62/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
php
Bereich
api, backend

Rechercherichtung

Start in lib/Controller/ApiController.php at line 1273 and reproduce the issue by submitting a response to a form linked to a spreadsheet. Trace the spreadsheet update path and verify that a new submission appears automatically without the reported null or undefined-array-key errors.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

0. Needs triage bug

Please use the 👍 reaction to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug
As already described in #3694, my form is link to a spreadsheet to view result. But actually, on a new submission, this spreadsheet is not automaticaly updated. We have to go to result tab in form view and click on "Re-export spreadsheet".
In nextcloud admin logs I can see this lines when I submit e new response in form :

Trying to access array offset on value of type null at /home/nextcloud/http/apps/forms/lib/Controller/ApiController.php#1273

Undefined array key 467 at /home/nextcloud/http/apps/forms/lib/Controller/ApiController.php#1273

To Reproduce
Just submit a new response, then go to the linked spreadsheet. The new submission does not appear.

Expected behavior
I am expected the spreasheet to be updated.

Nextcloud (please complete the following information):

  • Nextcloud-Version: 34.0.4
  • Forms-Version: 5.4.0

Desktop (please complete the following information):

  • OS: Win 11
  • Browser : Firefox
  • Version : 140.16.0esr
Vorherrschende Sprache
JavaScript
Sterne
382
Forks
130
Ø Merge
14 Std. 26 Min.
Gemergte PRs (30 T.)
81

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus nextcloud/forms

Alle Issues in nextcloud/forms

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.