Skip to content

Commit

Permalink
Commands: fix XMDS output for createAlertOn
Browse files Browse the repository at this point in the history
  • Loading branch information
dasgarner committed Oct 1, 2024
1 parent 8d78e5f commit 6bf8875
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Xmds/Soap5.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,16 +331,19 @@ public function RegisterDisplay(
}

$node = $return->createElement($command->code);
$node->setAttribute('createAlertOn', $command->getCreateAlertOn());
$commandString = $return->createElement('commandString');
$commandStringCData = $return->createCDATASection($command->getCommandString());
$commandString->appendChild($commandStringCData);
$validationString = $return->createElement('validationString');
$validationStringCData = $return->createCDATASection($command->getValidationString());
$validationString->appendChild($validationStringCData);
$alertOnString = $return->createElement('createAlertOn');
$alertOnStringCData = $return->createCDATASection($command->getCreateAlertOn());
$alertOnString->appendChild($alertOnStringCData);

$node->appendChild($commandString);
$node->appendChild($validationString);
$node->appendChild($alertOnString);

$commandElement->appendChild($node);
} catch (\DOMException $DOMException) {
Expand Down

0 comments on commit 6bf8875

Please sign in to comment.