Incidencia #10297

Display blocks of imactive modules
Abrir Fecha: 2007-04-17 15:20 Última actualización: 2007-04-18 15:13

Informador:
Propietario:
Estado:
Cerrado
Componente:
(Ninguno)
Hito:
(Ninguno)
Prioridad:
9 - Highest
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
Ninguno

Details

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
  • Propietario Update from (Ninguno) to minahito
  • Resolución Update from Ninguno to Accepted
2007-04-17 18:01 Updated by: minahito
  • Ticket Close date is changed to 2007-04-17 18:01
  • Summary Updated
  • Resolución Update from Accepted to Fixed
  • Estado Update from Open to Cerrado
Comentario
Logged In: YES
user_id=8353

Thank you. I fixed the handler side.
2007-04-18 13:57 Updated by: minahito
  • Resolución Update from Fixed to Accepted
  • Estado Update from Cerrado to Open
Comentario
Logged In: YES
user_id=8353

Reopen
2007-04-18 14:23 Updated by: minahito
Comentario
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
  • Resolución Update from Accepted to Fixed
  • Estado Update from Open to Cerrado

Attachment File List

No attachments

Editar

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