- Timestamp:
- 2021-02-21T13:42:52+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDiscussionPanel.java
r17500 r17506 124 124 try { 125 125 OsmApi.getOsmApi().addCommentToChangeset(current, dialog.getInputText(), null); 126 } catch (OsmTransferException e) { 126 actUpdateChangesets.actionPerformed(null); 127 } catch (OsmTransferException | IllegalArgumentException e) { 127 128 Logging.error(e); 128 129 JOptionPane.showMessageDialog( 129 130 MainApplication.getMainFrame(), 130 ExceptionUtil.explain OsmTransferException(e),131 ExceptionUtil.explainException(e), 131 132 tr("Error"), 132 133 JOptionPane.ERROR_MESSAGE); -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r17500 r17506 550 550 else if (changeset.getId() <= 0) 551 551 throw new IllegalArgumentException(tr("Changeset ID > 0 expected. Got {0}.", changeset.getId())); 552 sendRequest("POST", "changeset/" + changeset.getId() + "/comment ",553 "text=" + Utils.encodeUrl(comment), monitor, "application/x-www-form-urlencoded", true, false);552 sendRequest("POST", "changeset/" + changeset.getId() + "/comment?text="+ Utils.encodeUrl(comment), 553 null, monitor, "application/x-www-form-urlencoded", true, false); 554 554 } 555 555
Note:
See TracChangeset
for help on using the changeset viewer.