mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
fix the case when before and after values are null
This commit is contained in:
@@ -99,7 +99,8 @@ public class PropertyModificationAllowedCheck
|
||||
&& !after.get(key).equals(beforeValue);
|
||||
|
||||
//check if the property has been emptied or removed
|
||||
boolean propertyRemovedEmptied = after.get(key) == null || !after.containsKey(key);
|
||||
boolean propertyRemovedEmptied = (after.get(key) == null && beforeValue !=null)
|
||||
|| !after.containsKey(key);
|
||||
if (modified || propertyRemovedEmptied)
|
||||
{
|
||||
proceed = allowPropertyUpdate(key);
|
||||
|
Reference in New Issue
Block a user