--- stormticket.theme.Orig.inc	2009-05-26 01:09:26.000000000 +0200
+++ stormticket.theme.inc	2009-07-05 16:21:12.000000000 +0200
@@ -36,6 +36,8 @@
 function theme_stormticket_view($node, $teaser = FALSE, $page = FALSE) {
   $node = node_prepare($node, $teaser);
 
+  $ticket_status_list = stormattribute_attributes_bydomain('Ticket status');
+
   $w = 0;
   $node->content['stormticket'] = array(
     '#prefix' => '<div id="stormticket" class="stormcomponent">',
@@ -80,7 +82,7 @@
   $node->content['stormticket']['fields']['status'] = array(
     '#prefix' => '<div class="storm_status">',
     '#suffix' => '</div>',
-    '#value' => theme('storm_view_item', t('Status'), $node->ticketstatus),
+    '#value' => theme('storm_view_item', t('Status'), $ticket_status_list['values'][$node->ticketstatus]),
     '#weight' => $w++,
   );
 
