You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the following should be if (!oldName.equals(newName)), as the comment says 'Only metadata objects of the same type (of the same MetadataType object) can be exchanged'
if (oldName.equals(newName)) {
// Different metadata types.
return false;
}
Thanks! I'm afraid I won't be able to test it any time soon - I don't have a test deployment of goobi yet, and we're not ready for another upgrade in the near future. The fix looks correct to me, though
I think the following should be
if (!oldName.equals(newName))
, as the comment says 'Only metadata objects of the same type (of the same MetadataType object) can be exchanged'https://github.com/intranda/ugh/blob/master/ugh/src/ugh/dl/DocStruct.java#L1649
Same bug is present in changeMetadataGroup (https://github.com/intranda/ugh/blob/master/ugh/src/ugh/dl/DocStruct.java#L1384)
I'm trying a workaround using
but it won't be as robust.
The text was updated successfully, but these errors were encountered: