michelve / software-license-manager

🔐Wordpress Software License Management. Supports WooCommerce, and WP eStore.
https://epikly.com
GNU General Public License v3.0
77 stars 29 forks source link

5.5.4 - bugfix - validation of licence fields - product editor #26

Closed MechComp closed 4 years ago

MechComp commented 4 years ago

Product editor fields validation failed - the values max domain and max device were overwriting saved values.

Min value of the field with domain max and device max doesn't make sense - if it's maximum, it shouldn't work as minimum.

Saving only fields with not empty value results in a case where if you ever set the value of the field to some value - let's say devices number to 2 and then you want to change it to 0 it won't overwrite the saved value and still keeps 2.