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

Open
ansv7779 wants to merge 1 commits from reflection_not_submitted into develop
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
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
This pull request doesn't have enough required approvals yet. 0 of 1 official approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin reflection_not_submitted:reflection_not_submitted
git checkout reflection_not_submitted
Sign in to join this conversation.
No description provided.