下載
軟體開發
帳戶
下載
軟體開發
登入
我忘記帳戶名和密碼了
新增帳戶
語言
手冊
語言
手冊
×
登入
登入名稱
密碼
×
我忘記帳戶名和密碼了
繁體中文翻譯狀態
類別:
軟體
人
PersonalForge
Magazine
Wiki
搜尋
OSDN
>
軟體搜索
>
Internet
>
WWW/HTTP
>
Dynamic Content
>
XOOPS
>
Ticket List/Search
>
待辦事項 #10297
XOOPS
描述
專案概要
開發人員儀表板
專案的網頁
Developers
Image Gallery
List of RSS Feeds
活動
使用統計
歷史
檔案下載
發布列表
Stats
原始碼
儲存庫列表
CVS
查看儲存庫
待辦事項
待辦事項列表
里程碑列表
類型列表
元件列表
List of frequently used tickets/RSS
新增待辦事項
文檔
溝通
討論區
討論區列表
幫助論壇 (1)
公開討論 (1)
通信論壇
通信論壇列表
xoops-cvslog
新聞
待辦事項 #10297
待辦事項列表
新增待辦事項
RSS
Display blocks of imactive modules
啟用日期:
2007-04-17 15:20
最後更新:
2007-04-18 15:13
監視
ON
OFF
回報者:
minahito
負責人:
minahito
類型:
XOOPSCube2.1 Bugs
狀態:
關閉
元件:
(無)
里程碑:
(無)
優先權:
9 - 最高
嚴重程度:
5 - 中
處理結果:
修正
檔案:
無
細節
回覆
Reported by Marijuana;
diff -u -r1.1.2.3 ModuleListAction.class.php
--- ModuleListAction.class.php 28 Dec 2006 13:24:50
-0000 1.1.2.3
+++ ModuleListAction.class.php 13 Apr 2007 17:05:40 -0000
@@ -82,14 +82,23 @@
$newdata['weight'] =
$this->mActionForm->get('weight', $mid);
$newdata['isactive'] =
$this->mActionForm->get('isactive', $mid);
if ( count(array_diff_assoc($olddata,
$newdata)) > 0 ) {
+ $isactive =
$this->mActionForm->get('isactive', $mid);
$module->set('name',
$this->mActionForm->get('name', $mid));
$module->set('weight',
$this->mActionForm->get('weight', $mid));
- $module->set('isactive',
$this->mActionForm->get('isactive', $mid));
+ $module->set('isactive', $isactive);
//
// Store.
//
$successFlag &=
$moduleHandler->insert($module);
+
+ $b_handler =&
xoops_getmodulehandler('newblocks');
+ $mCriteria =& new CriteriaCompo(new
Criteria('mid', $mid));
+ $block_array =&
$b_handler->getObjects($mCriteria);
+ foreach ( $block_array as $block ) {
+ $block->set('isactive', $isactive);
+ $b_handler->insert($block);
+ }
}
}
Ticket History (3/5 Histories)
Show older Histories
2007-04-17 15:36
Updated by:
minahito
負責人
Update from
(無)
to
minahito
處理結果
Update from
無
to
Accepted
2007-04-17 18:01
Updated by:
minahito
Ticket Close date
is changed to
2007-04-17 18:01
Summary Updated
處理結果
Update from
Accepted
to
修正
狀態
Update from
開啟
to
關閉
評語
回覆
Logged In: YES
user_id=8353
Thank you. I fixed the handler side.
2007-04-18 13:57
Updated by:
minahito
處理結果
Update from
修正
to
Accepted
狀態
Update from
關閉
to
開啟
評語
回覆
Logged In: YES
user_id=8353
Reopen
2007-04-18 14:23
Updated by:
minahito
評語
回覆
Logged In: YES
user_id=8353
It seems that Blocks::isactive is cache of isactive of the
module. So we should control these values in the control
panel, as Marijuana said.
2007-04-18 15:13
Updated by:
minahito
Ticket Close date
is changed to
2007-04-18 15:13
處理結果
Update from
Accepted
to
修正
狀態
Update from
開啟
to
關閉
Attachment File List (
0
)
Attachment File List
No attachments
編輯
新增評語
You are not logged in.
I you are not logged in, your comment will be treated as an anonymous post. »
登入
新增評語
預覽
提交
diff -u -r1.1.2.3 ModuleListAction.class.php
--- ModuleListAction.class.php 28 Dec 2006 13:24:50
-0000 1.1.2.3
+++ ModuleListAction.class.php 13 Apr 2007 17:05:40 -0000
@@ -82,14 +82,23 @@
$newdata['weight'] =
$this->mActionForm->get('weight', $mid);
$newdata['isactive'] =
$this->mActionForm->get('isactive', $mid);
if ( count(array_diff_assoc($olddata,
$newdata)) > 0 ) {
+ $isactive =
$this->mActionForm->get('isactive', $mid);
$module->set('name',
$this->mActionForm->get('name', $mid));
$module->set('weight',
$this->mActionForm->get('weight', $mid));
- $module->set('isactive',
$this->mActionForm->get('isactive', $mid));
+ $module->set('isactive', $isactive);
//
// Store.
//
$successFlag &=
$moduleHandler->insert($module);
+
+ $b_handler =&
xoops_getmodulehandler('newblocks');
+ $mCriteria =& new CriteriaCompo(new
Criteria('mid', $mid));
+ $block_array =&
$b_handler->getObjects($mCriteria);
+ foreach ( $block_array as $block ) {
+ $block->set('isactive', $isactive);
+ $b_handler->insert($block);
+ }
}
}