Unverified Commit fc1a61b6 authored by Anil Gupta's avatar Anil Gupta Committed by GitHub
Browse files

Issue #SB-30307 merge: Merge pull request #848 from project-sunbird/release-4.9.1

Issue #SB-30307 fix: relational_metadata setting as string null
Showing with 5 additions and 0 deletions
+5 -0
......@@ -243,6 +243,11 @@ class ContentActor @Inject() (implicit oec: OntologyEngineContext, ss: StorageSe
"Yes".equalsIgnoreCase(node.getMetadata.getOrDefault("trackable", new java.util.HashMap[String, AnyRef]).asInstanceOf[java.util.Map[String, AnyRef]].getOrDefault("enabled", "").asInstanceOf[String])) {
node.getMetadata.put("contentType", "Course")
}
//TODO: Below fix to be reviewed when the fix for null to Stringify in ExternalStore.scala is implemented
if(node.getExternalData != null && node.getExternalData.containsKey("relational_metadata") && node.getExternalData.get("relational_metadata") == null) {
node.getExternalData.put("relational_metadata", "{}")
}
node
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment