aodn / aatams

Animal Tracking (formerly AATAMS)
https://aatams.aodn.org.au
8 stars 3 forks source link

Ping ID Code field becomes null when editing sensor and range test tags #363

Open xhoenner opened 7 years ago

xhoenner commented 7 years ago

@bhasin85, relates to https://github.com/aodn/aatams/pull/361

Steps to reproduce

When logged in, go to the Tag list page. Click on the i icon next to a tag of type PINGER, e.g. A69-1303-62734. Then click on the Edit button. In another browser tab, go back to the tag list page and click on the i icon next to a tag of another type (e.g. 'RANGE_TEST', 'TEMPERATURE', 'PRESSURE' or 'ACCELEROMETER), e.g. A69-9001-65071. Then click on the Edit button.

What happens

On the tag edit page for the PINGER tag the Ping ID Code field is filled the tag ping code, in the above example 62734. On the tag edit page for the other type of tag the Ping ID Code field is blank.

What should happen

On any tag edit page the Ping ID Code should be filled with the tag ping code.

xhoenner commented 7 years ago

This is actually the expected behaviour, however: 1/ the Ping ID Code field should not be editable for sensor tags ( i.e. 'TEMPERATURE', 'PRESSURE' or 'ACCELEROMETER) 2/ for 'RANGE TEST' tags the behaviour should be the same as for 'PINGER' tags