From 9cd47c3f04d3f00cf99e3057ab33da5030cd4c41 Mon Sep 17 00:00:00 2001
From: "G. Richardson" <information@lx-office-hosting.de>
Date: Mon, 27 Sep 2010 13:13:53 +0200
Subject: [PATCH] Bugfix: makemodel.make ist integer
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Feldvergleich zu in SL/IC.pm schlug fehl, cast von string zu integer nicht mehr nötig
---
 SL/IC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SL/IC.pm b/SL/IC.pm
index d5b0f5366..b9ad62c58 100644
--- a/SL/IC.pm
+++ b/SL/IC.pm
@@ -1633,7 +1633,7 @@ sub prepare_parts_for_printing {
   my $placeholders = join ', ', ('?') x scalar(@part_ids);
   my $query        = qq|SELECT mm.parts_id, mm.model, v.name AS make
                         FROM makemodel mm
-                        LEFT JOIN vendor v ON (mm.make = cast (v.id as text))
+                        LEFT JOIN vendor v ON (mm.make = v.id)
                         WHERE mm.parts_id IN ($placeholders)|;
 
   my %makemodel    = ();
-- 
2.20.1