Multitenancy disabled doesn't work (probably a bug)


stephane
 
Edited

Hi,

The disable option doesn't work:
@MultiTenant(disable = true)

In the MultiTenantHandler DN looks for disabled instead of disable attribute name. And then the disable extension is added if it's not disabled
Boolean disabled = (Boolean)annotationValues.get("disable");
if (disabled != null && !disabled) {
cmd.addExtension("multitenancy-disable", "true");
}
Suggestion:
Boolean disabled = (Boolean)annotationValues.get("disable");
if (disabled != null && disabled)
{
cmd.addExtension(MetaData.EXTENSION_CLASS_MULTITENANCY_DISABLE, "true");
}

--
Stephane