We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d7ad73 commit 7db6291Copy full SHA for 7db6291
fflib/src/classes/fflib_SObjectUnitOfWork.cls
@@ -260,7 +260,7 @@ public virtual class fflib_SObjectUnitOfWork
260
throw new UnitOfWorkException(String.format('SObject type {0} is not supported by this unit of work', new String[] { sObjectType }));
261
262
// If record isn't registered as dirty
263
- if (!m_dirtyMapByType.get(sObjectType).containsKey(record.Id))
+ if (!m_dirtyMapByType.get(sObjectType).containsKey(record.Id) || dirtyFields.isEmpty())
264
{
265
// Register the record as dirty
266
m_dirtyMapByType.get(sObjectType).put(record.Id, record);
0 commit comments