Merge branch 'bugfix/form_fix' into 'develop'

fix

See merge request BPHV_MIPS/mvm_core_ui!344
This commit is contained in:
Pfeil, Scott Robert 2020-04-02 12:07:10 -04:00
commit cfb2c3c78a
2 changed files with 4 additions and 1 deletions

View File

@ -48,6 +48,9 @@ import MVMCore
if let validator = delegate?.formValidator { if let validator = delegate?.formValidator {
validator.delegate = delegate validator.delegate = delegate
validator.insert(item) validator.insert(item)
// TODO: Temporary hacks, rewrite architecture to support this.
_ = validator.validate()
} }
} }

View File

@ -11,7 +11,7 @@ import Foundation
public class RuleRequiredModel: RulesProtocol { public class RuleRequiredModel: RulesProtocol {
public static var identifier: String = "required" public static var identifier: String = "allRequired"
public var type: String = RuleRequiredModel.identifier public var type: String = RuleRequiredModel.identifier
public var fields: [String] public var fields: [String]