summaryrefslogtreecommitdiff
path: root/rt-liberation-rest.el
diff options
context:
space:
mode:
authorYoni Rabkin <yrk@gnu.org>2015-05-20 10:30:55 -0400
committerYoni Rabkin <yrk@gnu.org>2015-05-20 10:30:55 -0400
commit82f74ffe65fabfa4f290f0c603cfc3738bb42cfc (patch)
tree25650b996ba91b134f6e987c628d5a463d4ca03c /rt-liberation-rest.el
parente5fe16e4b2d27778b9ddc488c51fd34889cd197f (diff)
Re-write command set and assignment code.
This removes a lot of cruft along the way, which is a good thing.
Diffstat (limited to 'rt-liberation-rest.el')
-rw-r--r--rt-liberation-rest.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/rt-liberation-rest.el b/rt-liberation-rest.el
index d2c8fce..10a5a9f 100644
--- a/rt-liberation-rest.el
+++ b/rt-liberation-rest.el
@@ -264,12 +264,11 @@
(rt-liber-rest-handle-response response-buffer)))
(message "edit command ended at %s" (current-time-string)))
-(defun rt-liber-rest-command-set-status (id status)
+(defun rt-liber-rest-command-set (id field status)
"Set ticket ID status to be STATUS."
- (let ((field (rt-liber-get-field-string 'status)))
- (rt-liber-parse-answer
- (rt-liber-rest-edit-runner id field status)
- 'rt-liber-command-runner-parser-f)))
+ (rt-liber-parse-answer
+ (rt-liber-rest-edit-runner id field status)
+ 'rt-liber-command-runner-parser-f))
(provide 'rt-liberation-rest)