incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amitg...@apache.org
Subject svn commit: r1565082 - /sling/trunk/contrib/extensions/tenant/src/main/java/org/apache/sling/tenant/internal/TenantProviderImpl.java
Date Thu, 06 Feb 2014 05:34:02 GMT
Author: amitgupt
Date: Thu Feb  6 05:34:01 2014
New Revision: 1565082

URL: http://svn.apache.org/r1565082
Log:
SLING-3376 - TenantProvider passes tenant with old state to TenantCustomizer

Applied the patch. Thanks Roland for the patch.

Modified:
    sling/trunk/contrib/extensions/tenant/src/main/java/org/apache/sling/tenant/internal/TenantProviderImpl.java

Modified: sling/trunk/contrib/extensions/tenant/src/main/java/org/apache/sling/tenant/internal/TenantProviderImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/tenant/src/main/java/org/apache/sling/tenant/internal/TenantProviderImpl.java?rev=1565082&r1=1565081&r2=1565082&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/tenant/src/main/java/org/apache/sling/tenant/internal/TenantProviderImpl.java
(original)
+++ sling/trunk/contrib/extensions/tenant/src/main/java/org/apache/sling/tenant/internal/TenantProviderImpl.java
Thu Feb  6 05:34:01 2014
@@ -381,6 +381,12 @@ public class TenantProviderImpl implemen
                     Resource tenantRes = getTenantResource(resolver, tenant.getId());
                     if (tenantRes != null) {
                         updater.update(tenantRes.adaptTo(ModifiableValueMap.class));
+
+                        //refresh so that customizer gets a refreshed tenant instance
+                        if (tenant instanceof TenantImpl) {
+                            ((TenantImpl) tenant).loadProperties(tenantRes);
+                        }
+
                         customizeTenant(tenantRes, tenant);
                         resolver.commit();
 



Mime
View raw message