serge-web / serge

Serious Gaming, Evolved - web interface
https://sites.google.com/deepbluec.com/serge/
Apache License 2.0
14 stars 4 forks source link

Should not allow user update 'Health' with invalid value #2909

Closed Tristina1788 closed 4 months ago

Tristina1788 commented 5 months ago

🐞 Bug description

Should not allow user update 'Health' with invalid value

From @IanMayo . Ok, @lebaphi the health property is defined in the database as a NumberProperty property - so when we have this type of property, we should be able to verify it is a number - please.

🔢 Steps to Reproduce

  1. Play game with data wargame-l6nngxlk
  2. Click on 'Core Mapping' channel
  3. Click on MilSymbol item
  4. Update 'Health' with invalid value (example 'abc')
  5. Notice I can save for this properties and health bar is not showed

image

⚙️ Expected behavior

Should not allow user update 'Health' with invalid value

🖥️ Screenshots

💻 System information

📝 Additional context