From: Joey Schulze Date: Wed, 24 Mar 2010 16:54:20 +0000 (+0000) Subject: Properly filter year X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fservice.infodrom.org;a=commitdiff_plain;h=732f6bb7c3bbf8bb811bde9a38c8a14e4acc2857 Properly filter year --- diff --git a/src/InfoCon/buch/infocon b/src/InfoCon/buch/infocon index afdf50c..a8bfaca 100755 --- a/src/InfoCon/buch/infocon +++ b/src/InfoCon/buch/infocon @@ -1,7 +1,7 @@ #! /usr/bin/perl # infocon - Administration tool for InfoCon -# Copyright (c) 1998-2003,2005-8 Martin Schulze +# Copyright (c) 1998-2003,2005-8,10 Martin Schulze # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -132,9 +132,9 @@ sub sales_list if ($opt_year) { if ($where) { - $where .= " AND date ~* '$opt_year'"; + $where .= " AND date LIKE '$opt_year%'"; } else { - $where .= "date ~* '$opt_year'"; + $where .= "date LIKE '$opt_year%'"; } }