Skip to content

Commit 38587f7

Browse files
committed
QPR-13744 revert previous change
1 parent 2d04777 commit 38587f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OREData/ored/portfolio/referencedata.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,11 +517,11 @@ void PortfolioBasketReferenceDatum::fromXML(XMLNode* node) {
517517
QL_REQUIRE(componentsNode, "No Components node");
518518

519519
auto portfolio = QuantLib::ext::make_shared<Portfolio>();
520-
auto c = XMLUtils::getAnyChildrenNodes(componentsNode, {"Trade", "SubTrade"});
520+
auto c = XMLUtils::getChildrenNodes(componentsNode, "Trade");
521521
int k = 0;
522522
for (auto const n : c) {
523523

524-
string tradeType = XMLUtils::getAnyChildValue(n, {"TradeType", "SubTradeType"}, true);
524+
string tradeType = XMLUtils::getChildValue(n, "TradeType", true);
525525
string id = XMLUtils::getAttribute(n, "id");
526526
if (id == "") {
527527
id = std::to_string(k);

0 commit comments

Comments
 (0)