Skip to content

Instantly share code, notes, and snippets.

@obra
Created July 13, 2009 19:40
Show Gist options
  • Save obra/146386 to your computer and use it in GitHub Desktop.
Save obra/146386 to your computer and use it in GitHub Desktop.
--- 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