dont copy if the application types dont match and the source and dest are both

not containers in smart copy
This commit is contained in:
Jeff Hill
2002-09-19 18:31:06 +00:00
parent 04a3d585d4
commit 8c3d560ca8
+8 -2
View File
@@ -546,8 +546,14 @@ gddStatus gddApplicationTypeTable::smartCopy(gdd* dest, const gdd* src)
rc=copyDD_src(*dest,*src);
else if(src->isContainer() && src->isManaged())
rc=copyDD_dest(*dest,*src);
else if(!src->isContainer() && !dest->isContainer())
rc=dest->put(src); // both are not containers, let gdd handle it
else if(!src->isContainer() && !dest->isContainer()) {
if ( src->applicationType() == dest->applicationType() ) {
rc=dest->put(src); // both are not containers, let gdd handle it
}
else {
rc=gddErrorNotDefined;
}
}
else
rc=gddErrorNotAllowed;