Replace ContractType.ReadAndSign with literal value 2
Updated envelope validation to compare EnvelopeTypeId directly to the integer 2 instead of using the ContractType.ReadAndSign constant. This simplifies the condition and removes dependency on the constant.
This commit is contained in:
@@ -50,7 +50,7 @@ Public Class EnvelopeEditorController
|
||||
Public Function ValidateEnvelopeForSending(pErrors As List(Of String)) As List(Of String)
|
||||
Dim oEnvelopeErrors = pErrors
|
||||
|
||||
If Envelope.EnvelopeTypeId <> ContractType.ReadAndSign Then
|
||||
If Envelope.EnvelopeTypeId <> 2 Then
|
||||
|
||||
If ElementModel.ElementsExist(Envelope.Id) = False Then
|
||||
oEnvelopeErrors.Add(Resources.Envelope.Missing_Elements)
|
||||
|
||||
Reference in New Issue
Block a user