Skip to content

Commit

Permalink
Fixed broken field in MBZ; Bumped electron.manifest.json
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinHo64 committed Jun 26, 2023
1 parent c1b7838 commit f531738
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AuthoringTool/electron.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"appId": "com.AuthoringTool.app",
"productName": "AuthoringTool",
"copyright": "Copyright © 2023 Team AdLer",
"buildVersion": "1.0.1",
"buildVersion": "1.0.2",
"compression": "maximum",
"directories": {
"output": "../../../bin/Desktop_Publish"
Expand Down
6 changes: 3 additions & 3 deletions Generator/XmlClasses/XmlFileFactories/XmlLabelFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void LabelSetParameters(List<LearningElementJson> labelList)
{
LabelId = label.ElementId.ToString();
LabelName = label.ElementName;
LabelGoal = label.ElementGoals[0];
LabelGoal = string.Join("<br>", label.ElementGoals);
LabelParentSpaceId = label.LearningSpaceParentId.ToString();
LabelDescription = label.ElementDescription ?? "";

Expand All @@ -111,8 +111,8 @@ public void LabelSetParametersWorldAttributes()
ActivitiesGradesXmlActivityGradebook.Serialize("label", LabelId);

//file activities/label.../label.xml
ActivitiesLabelXmlLabel.Name = "<h5>Description:</h5> " + "<p>" + LabelDescription + "</p>" +
"<h5>Goals:</h5> " + "<p>" + LabelGoal + "</p>";
ActivitiesLabelXmlLabel.Name = "DescriptionGoals";

ActivitiesLabelXmlLabel.Id = LabelId;
ActivitiesLabelXmlLabel.Intro = "<h5>Description:</h5> " + "<p>" + LabelDescription + "</p>" +
"<h5>Goals:</h5> " + "<p>" + LabelGoal + "</p>";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void XmlLabelFactory_CreateLabelFactory_AllPropertiesSetAndSerialized()
systemUnderTest.ActivitiesGradesXmlActivityGradebook.Received().Serialize("label", "2");

Assert.That(systemUnderTest.ActivitiesLabelXmlLabel, Is.EqualTo(mockLabel));
Assert.That(systemUnderTest.ActivitiesLabelXmlLabel.Name, Is.EqualTo("<h5>Description:</h5> <p>World Description</p><h5>Goals:</h5> <p>World Goals</p>"));
Assert.That(systemUnderTest.ActivitiesLabelXmlLabel.Name, Is.EqualTo("DescriptionGoals"));
Assert.That(systemUnderTest.ActivitiesLabelXmlLabel.Id, Is.EqualTo("2"));
Assert.That(systemUnderTest.ActivitiesLabelXmlLabel.Intro, Is.EqualTo("<h5>Description:</h5> <p>World Description</p><h5>Goals:</h5> <p>World Goals</p>"));
Assert.That(systemUnderTest.ActivitiesLabelXmlLabel.Timemodified, Is.EqualTo(systemUnderTest.CurrentTime));
Expand Down

0 comments on commit f531738

Please sign in to comment.