Validate rule Advanced Options numeric entries

version of pull request #1021 for 2.1 branch