* Fix that the condition form required a range when choosing a custom condition * Implement condition type validation on model.