CP-19086: In the PVS Cache configuration dialog, we shouldn't try to save a "not configured" site if it was "not configured" before

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2016-10-12 17:10:39 +01:00
parent af680eb6eb
commit be668850a4

View File

@ -167,8 +167,10 @@ namespace XenAdmin.Controls
{
get
{
if (OrigPvsCacheStorage == null || CacheSr == null)
return true;
if (OrigPvsCacheStorage == null)
return CacheSr != null;
if (CacheSr == null)
return OrigPvsCacheStorage != null;
return OrigPvsCacheStorage.SR.opaque_ref != CacheSr.opaque_ref || origCacheSizeGb != numericUpDownCacheSize.Value;
}
}