value_title_sub in L.select_tag richtig verarbeiten.
authorThomas Heck <theck@linet-services.de>
Mon, 19 Nov 2012 15:48:40 +0000 (16:48 +0100)
committerThomas Heck <theck@linet-services.de>
Mon, 19 Nov 2012 15:48:40 +0000 (16:48 +0100)
SL/Template/Plugin/L.pm

index 742d7db..95d2254 100644 (file)
@@ -182,7 +182,7 @@ sub select_tag {
     my $title;
 
     if ( $value_title_sub ) {
-      ($value, $title) = $value_title_sub->($entry);
+      ($value, $title) = @{ $value_title_sub->($entry) };
     } else {
 
       $value = $normalize_entry->('value', $entry, $value_sub, $value_key);