Descargar
Desarrollar
Cuenta
Descargar
Desarrollar
Entrar
Forgot Account/Password
Crear Cuenta
Idioma
Ayuda
Idioma
Ayuda
×
Entrar
Nombre de usuario
Contraseña
×
Forgot Account/Password
Translation Status of Español
Categoría:
Software
Gente
PersonalForge
Magazine
Wiki
Buscar
OSDN
>
Buscar Software
>
Internet
>
WWW/HTTP
>
Dynamic Content
>
XOOPS
>
Ticket List/Search
>
Incidencia #10297
XOOPS
Descripción
Project Summary
Developer Dashboard
Página Web
Developers
Image Gallery
List of RSS Feeds
Activity
Statistics
Historial
Descargas
List of Releases
Stats
Código Fuente
Code Repository list
CVS
Ver Repositorio
Incidencia
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Documents
Communication
Foros
List of Forums
Ayuda (1)
Open Discussion (1)
Mailing Lists
list of ML
xoops-cvslog
Noticias
Incidencia #10297
Ticket List
Submit New Ticket
RSS
Display blocks of imactive modules
Abrir Fecha:
2007-04-17 15:20
Última actualización:
2007-04-18 15:13
monitor
ON
OFF
Informador:
minahito
Propietario:
minahito
Tipo:
XOOPSCube2.1 Bugs
Estado:
Cerrado
Componente:
(Ninguno)
Hito:
(Ninguno)
Prioridad:
9 - Highest
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
Ninguno
Details
Responder
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
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
Responder
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
Responder
Logged In: YES
user_id=8353
Reopen
2007-04-18 14:23
Updated by:
minahito
Comentario
Responder
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 (
0
)
Attachment File List
No attachments
Editar
Add Comment
You are not logged in.
I you are not logged in, your comment will be treated as an anonymous post. »
Entrar
Add Comment
Vista previa
Submit
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);
+ }
}
}