Merged 5.2.0 (5.2.0) to HEAD (5.2)

133845 rmunteanu: REPO-1746: Merge fixes for 5.2 GA issues to 5.2.0 branch
      Merged 5.2.N (5.2.1) to 5.2.0 (5.2.0)
         133290 jvonka: REPO-1646: V1 REST API - cannot unset optional fields (eg. when updating person / site details ...)
         - part 1 (Update Site)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@134184 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2017-01-11 10:34:24 +00:00
parent e58900ad81
commit 2b1c7382d1
5 changed files with 97 additions and 34 deletions

View File

@@ -1179,15 +1179,15 @@ public class SitesImpl implements Sites
}
// Bind any provided values to the site info, allowing for "partial" updates.
if (update.getTitle() != null)
if (update.wasSet(Site.TITLE))
{
siteInfo.setTitle(update.getTitle());
}
if (update.getDescription() != null)
if (update.wasSet(Site.DESCRIPTION))
{
siteInfo.setDescription(update.getDescription());
}
if (update.getVisibility() != null)
if (update.wasSet(Site.VISIBILITY))
{
siteInfo.setVisibility(update.getVisibility());
}