view debian/patches/22_bins-hash-ref @ 9:0f248ad86f9f 1.1.29.e2

bins_edit: try to get encoding stuff right, move it into main
author Peter Gervai <grin@grin.hu>
date Thu, 16 Oct 2008 00:11:14 +0200
parents c5749e43b1d7
children
line wrap: on
line source

#! /bin/sh /usr/share/dpatch/dpatch-run
## 22_hash_ref.dpatch by  <rousseau@imac.maison.bogus>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Closes: #481662 bins: Crashes mid-album

@DPATCH@
--- bins-1.1.29.orig/bins
+++ bins-1.1.29/bins
@@ -3750,8 +3750,8 @@
 
     my @descTable;
     foreach my $tagName (@mainFields) {
-        if (${%$hashref}{$tagName}) {
-            my $value=${%$hashref}{$tagName};
+        if (${$hashref}{$tagName}) {
+            my $value=${$hashref}{$tagName};
             $value =~ s/'/&#39;/g  ; # in case it's used in javascript code
             push @descTable, {DESC_FIELD_NAME => $fields{$tagName}->{'Name'},
                               DESC_FIELD_VALUE => $value,