[xoops-cvslog 2809] CVS update: xoops2jp/html/modules/base/admin/forms

Back to archive index

Minahito minah****@users*****
2006年 4月 15日 (土) 11:50:26 JST


Index: xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php
diff -u xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php:1.1.2.5 xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php:1.1.2.6
--- xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php:1.1.2.5	Tue Apr 11 15:26:19 2006
+++ xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php	Sat Apr 15 11:50:25 2006
@@ -108,9 +108,18 @@
 		// Set sort conditions.
 		//
 		$this->_mCriteria->addSort($this->getSort(), $this->getOrder());
+		
+		//
+		// If the sort key is mid, set c_type to second sort key for list display.
+		//
+		if (abs($this->mSort) == NEWBLOCKS_SORT_KEY_MID) {
+			$this->_mCriteria->addSort('c_type', $this->getOrder());
+		}
+		
 		if (abs($this->mSort) != NEWBLOCKS_SORT_KEY_SIDE) {
 			$this->_mCriteria->addSort('side', $this->getOrder());
 		}
+		
 		if (abs($this->mSort) != NEWBLOCKS_SORT_KEY_WEIGHT) {
 			$this->_mCriteria->addSort('weight', $this->getOrder());
 		}


xoops-cvslog メーリングリストの案内
Back to archive index