Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Don't initialize empty strings with null in validation #277

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Types/EntityContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ $data.Class.define('$data.EntityContext', null, null,
var memDef = entity.data.getType().memberDefinitions.getPublicMappedProperties()[j];

var memDefType = Container.resolveType(memDef.type);
if (memDef.required && !memDef.computed && !entity.data[memDef.name] && !memDef.isDependentProperty) {
if (memDef.required && !memDef.computed && !entity.data[memDef.name] && entity.data[memDef.name] !== "" && !memDef.isDependentProperty) {
switch (memDefType) {
case $data.String:
case $data.Number:
Expand Down