Skip to content

Commit 9c0abc8

Browse files
committed
Ajustes gerais
* Ajuste na validação IsOptional - Se for True, ele não continua a validação daquele validate específico
1 parent 45b2844 commit 9c0abc8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/core/DataValidator.ItemBase.pas

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,11 @@ function TDataValidatorItemBase.GetValueAsString: string;
154154
LJSONPair := FValue.AsType<TJSONPair>;
155155

156156
if Assigned(LJSONPair) then
157-
begin
158-
if LJSONPair.JsonValue is TJSONNull then
159-
begin
160-
Result := LValue;
161-
end
162-
else
157+
if not (LJSONPair.JsonValue is TJSONNull) then
163158
begin
164159
LValue := LJSONPair.JsonValue.ToString.Trim(['"']);
165160
Result := StringReplace(LValue, '\/', '/', [rfReplaceAll]);
166161
end;
167-
end;
168162
end
169163
else
170164
Result := FValue.AsString;

0 commit comments

Comments
 (0)