Created
July 13, 2009 19:40
-
-
Save obra/146386 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/lib/App/SD/Replica/hm/PullEncoder.pm | |
+++ b/lib/App/SD/Replica/hm/PullEncoder.pm | |
@@ -224,7 +224,10 @@ sub translate_ticket_state { | |
my $props = shift; | |
- return $props, {%$props}; | |
+ my $translated = {%$props}; | |
+ $translated->{status} = (delete $translated->{complete}) ? 'closed' : 'open'; | |
+ | |
+ return $props, $translated; | |
} | |
__PACKAGE__->meta->make_immutable; | |
72-60-119-42:sd jesse$ git diff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment