Skip to content

Commit

Permalink
#2826 Fixed Cannot create Serotonin Persistent TCP type publisher
Browse files Browse the repository at this point in the history
 - Removed extractPrefix() method, passing xid as argument
  • Loading branch information
Patrykb0802 committed Jul 18, 2024
1 parent 28aa36e commit ed0d766
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions WebContent/WEB-INF/jsp/publisherEdit/editPersistent.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,9 @@
points[points.length] = {dataPointId: selectedPoints[i].id};
PublisherEditDwr.savePersistentSender(name, xid, enabled, points, $get("host"), $get("port"),
$get("authorizationKey"), extractPrefix(xid), $get("syncType"), cacheWarningSize, changesOnly, sendSnapshot,
$get("authorizationKey"), xid, $get("syncType"), cacheWarningSize, changesOnly, sendSnapshot,
snapshotSendPeriods, snapshotSendPeriodType, savePublisherCB);
}
function extractPrefix(xid) {
let underscoreIndex = xid.indexOf('_');
if (underscoreIndex !== -1) {
return xid.substring(0, underscoreIndex);
}
return "";
}
</script>

<table cellpadding="0" cellspacing="0">
Expand Down

0 comments on commit ed0d766

Please sign in to comment.