待辦事項 #10297

Display blocks of imactive modules
啟用日期: 2007-04-17 15:20 最後更新: 2007-04-18 15:13

回報者:
負責人:
狀態:
關閉
元件:
(無)
里程碑:
(無)
優先權:
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)

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

No attachments

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入