Minahito
minah****@users*****
2006年 7月 10日 (月) 16:24:39 JST
Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerclientFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerclientFilterForm.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/forms/BannerclientFilterForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacyRender/admin/forms/BannerclientFilterForm.class.php:1.1.2.2 Tue Apr 25 14:24:16 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/BannerclientFilterForm.class.php Mon Jul 10 16:24:38 2006 @@ -18,7 +18,7 @@ class LegacyRender_BannerclientFilterForm extends LegacyRender_AbstractFilterForm { var $mSort = 0; - var $_mSortKeys = array( + var $mSortKeys = array( BANNERCLIENT_SORT_KEY_CID => 'cid', BANNERCLIENT_SORT_KEY_NAME => 'name', BANNERCLIENT_SORT_KEY_CONTACT => 'contact', @@ -33,20 +33,20 @@ { $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : BANNERCLIENT_SORT_KEY_DEFAULT; - if ($this->mSort > BANNERCLIENT_SORT_KEY_MAXVALUE) { + if (!isset($this->mSortKeys[abs($this->mSort)])) { $this->mSort = BANNERCLIENT_SORT_KEY_DEFAULT; } if (isset($_REQUEST['name'])) { $this->_mNavi->addExtra('name', xoops_getrequest('name')); // TODO Changet to 'LIKE' (?) - $this->_mCriteria->add(new Criteria('name', array(XOBJ_DTYPE_STRING, xoops_getrequest('name')))); + $this->_mCriteria->add(new Criteria('name', xoops_getrequest('name'))); } if (isset($_REQUEST['contact'])) { $this->_mNavi->addExtra('contact', xoops_getrequest('contact')); // TODO Changet to 'LIKE' (?) - $this->_mCriteria->add(new Criteria('contact', array(XOBJ_DTYPE_STRING, xoops_getrequest('contact')))); + $this->_mCriteria->add(new Criteria('contact', xoops_getrequest('contact'))); } $this->_mCriteria->addSort($this->getSort(), $this->getOrder());