details: http://www.bx.psu.edu/hg/galaxy/rev/8457a6f3214a changeset: 3597:8457a6f3214a user: jeremy goecks <jeremy.goecks@emory.edu> date: Thu Apr 01 16:02:19 2010 -0400 description: Fix workflow annotation bug. diffstat: lib/galaxy/web/controllers/workflow.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diffs (16 lines): diff -r 9c1a0eeac431 -r 8457a6f3214a lib/galaxy/web/controllers/workflow.py --- a/lib/galaxy/web/controllers/workflow.py Thu Apr 01 15:10:45 2010 -0400 +++ b/lib/galaxy/web/controllers/workflow.py Thu Apr 01 16:02:19 2010 -0400 @@ -665,8 +665,10 @@ step.temp_input_connections = step_dict['input_connections'] # Save step annotation. - annotation = sanitize_html( step_dict[ 'annotation' ], 'utf-8', 'text/html' ) - self.add_item_annotation( trans, step, annotation ) + annotation = step_dict[ 'annotation' ] + if annotation: + annotation = sanitize_html( annotation, 'utf-8', 'text/html' ) + self.add_item_annotation( trans, step, annotation ) # Second pass to deal with connections between steps for step in steps: # Input connections