Skip to content

Commit

Permalink
Merge branch 'hotfix-10.8.21' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Jul 7, 2017
2 parents 4744343 + 9216f5f commit 54662b9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions system/services/presideObjects/VersioningService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ component {
, values = manyToManyData[ propertyName ]
, versionNumber = arguments.versionNumber
, versionAuthor = arguments.versionAuthor
);
);
}
}

Expand Down Expand Up @@ -262,11 +262,10 @@ component {
arguments.newData[ field ] = 0;
}

if ( ( propDbType == "datetime" || propDbType == "date" ) && isDate( arguments.newData[ field ] ?: "" ) ) {
if ( ( propDbType == "datetime" || propDbType == "date" ) && isDate( arguments.newData[ field ] ?: "" ) && isDate( oldData[ field ] ) ) {
if ( dateCompare( oldData[ field ], arguments.newData[ field ] ) ) {
changedFields.append( field );
}

} else if ( Compare( oldData[ field ], arguments.newData[ field ] ?: "" ) ) {
changedFields.append( field );
}
Expand Down Expand Up @@ -688,7 +687,7 @@ component {
var targetObject = prop.relatedTo ?: "";
var targetIdField = poService.getIdField( targetObject );
var newDataItems = len( newData ) ? deserializeJSON( "[ #newData# ]" ) : [];

var existingRecords = poService.selectData(
objectName = targetObject
, filter = { "#targetFk#"=arguments.sourceId }
Expand Down

0 comments on commit 54662b9

Please sign in to comment.