[Svn-src-all:1430] [version-2_5-dev 20322] #964 バグ修正 MySQLで同じ日付の休日が登録できてしまうバグをFIX

coelacanth admin @ mail.ec-cube.net
2011年 2月 22日 (火) 11:14:53 JST


Subversion committed to /home/svn/open 20322
http://svn.ec-cube.net/open_trac/changeset/20322
┌────────────────────────────┐
│更新者 :  coelacanth                                   │
│更新日時:  2011-02-22 11:14:52 +0900 (火, 22  2月 2011)│
└────────────────────────────┘

Log:
--------------------------------------------------------
#964 バグ修正 MySQLで同じ日付の休日が登録できてしまうバグをFIX

Changed:                      [U:修正,A:追加,D:削除]
--------------------------------------------------------
U   branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php

変更: branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php
===================================================================
--- branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php	2011-02-22 02:14:12 UTC (rev 20321)
+++ branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php	2011-02-22 02:14:52 UTC (rev 20322)
@@ -257,7 +257,7 @@
                 $where .= " AND holiday_id <> ?";
                 $arrval[] = $post['holiday_id'];
             }
-            $arrRet = $objQuery->select("count(holiday_id)", "dtb_holiday", $where, $arrval);
+            $arrRet = $objQuery->select("count(holiday_id) as count", "dtb_holiday", $where, $arrval);
 
             // 編集中のレコード以外に同じ日付が存在する場合
             if ($arrRet[0]['count'] > 0) {




Svn-src-all メーリングリストの案内