mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
MNT-22481 - Unable to Create Custom Metadata (#598)
* Upgrading org.json:json from version 20090211 to 20201115 introduced the issue as getString method in the newer version does not allow for values other than strings * Replaced getString for the get method * Original PR in governance-services: https://github.com/Alfresco/governance-services/pull/1448
This commit is contained in:
@@ -140,9 +140,8 @@ public class CustomPropertyDefinitionPost extends BaseCustomPropertyWebScript
|
||||
for (Iterator iter = json.keys(); iter.hasNext(); )
|
||||
{
|
||||
String nextKeyString = (String)iter.next();
|
||||
String nextValueString = json.getString(nextKeyString);
|
||||
|
||||
params.put(nextKeyString, nextValueString);
|
||||
Serializable nextValue = (Serializable) json.get(nextKeyString);
|
||||
params.put(nextKeyString, nextValue);
|
||||
}
|
||||
|
||||
return params;
|
||||
|
Reference in New Issue
Block a user