Minahito
minah****@users*****
2006年 5月 29日 (月) 18:12:13 JST
Index: xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.6 xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.7 --- xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.6 Tue Apr 11 12:19:29 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php Mon May 29 18:12:13 2006 @@ -81,6 +81,10 @@ $handler =& xoops_getmodulehandler('block_module_link', 'base'); $handler->deleteAll(new Criteria('block_id', $this->mObject->get('bid'))); foreach ($this->mObject->mBmodule as $bmodule) { + // + // If object is new, $bmodule isn't set bid yet. + // + $bmodule->set('block_id', $this->mObject->get('bid')); $handler->insert($bmodule); }