SORMAS-Project icon indicating copy to clipboard operation
SORMAS-Project copied to clipboard

'Place of stay of this case differs from its responsible jurisdiction' always displayed for 'Point of entry' cases in the mobile app

Open adinaflorea9 opened this issue 2 years ago • 0 comments

Bug Description

In the vaadin-app, the checkbox for 'Place of stay of this case differs from its responsible jurisdiction' for 'Point of entry' cases, is displayed only when a value (home/facility) has already been set for the case when it was created.

In the android-app, however, this checkbox is always displayed for 'Point of entry' cases, even when no value has been set for the 'Place of stay'.

Steps to Reproduce

  1. Log into the android-app;
  2. Create a new case (set 'Case origin' = point of entry; do not set any 'Place of stay');
  3. Save the case;
  4. Observe the case's main page.

Actual Behavior

The checkbox 'Place of stay of this case differs from its responsible jurisdiction' is displayed.

Expected Behavior

The checkbox 'Place of stay of this case differs from its responsible jurisdiction' should not be displayed when no value was set for 'Place of stay' when the case was created (expected behavior is described so that it would match the behavior from the vaadin-app).

Screenshots

Point of entry case with no value set for 'Place of stay' in the vaadin-app: image

Point of entry case with no value set for 'Place of stay' in the android-app: image

System Details

  • Device: Windows 10 (vaadin-app); Android Studio Emulator - Pixel C (android-app)
  • SORMAS version: 1.75.0-SNAPSHOT(cc39e9b)
  • Android version/Browser: Chrome (vaadin-app); Android 11 (android-app)
  • Server URL: local machine
  • User Role: Admin+NatUser (vaadin-app); Surveillance Officer (android app)

Additional Information

adinaflorea9 avatar Aug 05 '22 12:08 adinaflorea9