mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user