Fix localizer warning on the finishing up tab for each author #101

Merged
niat8586 merged 2 commits from reflection_not_submitted into develop 2025-02-07 07:50:03 +01:00
Owner

Fixes #48

The getReflectionText method was calling getString when no reflection has been submitted. This is not a relevant case for the editing form since it can not be accessed when there is no reflection. Inlined the method call and removed the non-submitted case, the default will be an empty string.

How to test

  1. Log in as a supervisor
  2. Open a project that has a Daisy connection (identifieris non-null on the Project)
  3. Go to the "Finishing up" tab
  4. Go to the tab for the author with no reflection submitted
  5. See that no warning is logged
Fixes #48 The `getReflectionText` method was calling `getString` when no reflection has been submitted. This is not a relevant case for the editing form since it can not be accessed when there is no reflection. Inlined the method call and removed the non-submitted case, the default will be an empty string. ## How to test 1. Log in as a supervisor 2. Open a project that has a Daisy connection (`identifier`is non-null on the `Project`) 3. Go to the "Finishing up" tab 4. Go to the tab for the author with no reflection submitted 5. See that no warning is logged
ansv7779 added 1 commit 2025-02-05 13:32:02 +01:00
Fix localizer warning on the finishing up tab for each author
All checks were successful
Build and test / build-and-test (push) Successful in 15m47s
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 2m13s
8d6faa8ee7
First-time contributor
Deployed to https://scipro-reflectionnotsubmitted.branch.dsv.su.se
niat8586 approved these changes 2025-02-07 07:26:16 +01:00
niat8586 left a comment
Owner

👍

Tested.

👍 Tested.
niat8586 added 1 commit 2025-02-07 07:26:29 +01:00
Merge branch 'develop' into reflection_not_submitted
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 3m38s
Build and test / build-and-test (push) Successful in 15m53s
Remove branch deployment from branch.dsv.su.se / cleanup (pull_request) Successful in 5s
4aa698eb42
niat8586 merged commit 219c312441 into develop 2025-02-07 07:50:03 +01:00
niat8586 deleted branch reflection_not_submitted 2025-02-07 07:50:04 +01:00
Sign in to join this conversation.
No description provided.