Skip to content

Commit

Permalink
OIA-19: Fix Ticketing API to return ticket id (#2556)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgorantla committed Jun 25, 2019
1 parent 75b21be commit 5f5deaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ public org.opennms.api.integration.ticketing.Ticket get(String ticketId) throws
public void saveOrUpdate(org.opennms.api.integration.ticketing.Ticket ticket) throws PluginException {
try {
Ticket retrieved = TicketingMapper.buildTicket(ticket);
ext.saveOrUpdate(retrieved);
String ticketId = ext.saveOrUpdate(retrieved);
if(ticketId != null) {
ticket.setId(ticketId);
}
} catch (Exception e) {
throw new PluginException(e);
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@
<protobuf3Version>3.5.1</protobuf3Version>
<postgresqlVersion>42.2.5</postgresqlVersion>
<powermockVersion>1.6.4</powermockVersion>
<opennmsApiVersion>0.2.0-SNAPSHOT</opennmsApiVersion>
<opennmsApiVersion>0.2.1-SNAPSHOT</opennmsApiVersion>
<osgiVersion>6.0.0</osgiVersion>
<osgiCompendiumVersion>5.0.0</osgiCompendiumVersion>
<osgiEnterpriseVersion>5.0.0</osgiEnterpriseVersion>
Expand Down

0 comments on commit 5f5deaa

Please sign in to comment.