#159 update module: Preserve the options of the blocks

Patches
closed
D.J.
5
2012-09-25
2006-11-02
Laurent JEN
No

Xoops 2.0.15
modules/system/admin/modulesadmin/main.php

replace line 355 with

$sql = "SELECT bid, name, options FROM
".$xoopsDB->prefix('newblocks')." WHERE
mid=".$module->getVar('mid')." AND func_num=".$i." AND
show_func='".addslashes($blocks[$i]['show_func'])."'
AND func_file='".addslashes($blocks[$i]['file'])."'";

add after line 358

if ( isset( $fblock['options'] ) ) {
$options = $fblock['options'];
}

Discussion

  • Laurent JEN

    Laurent JEN - 2006-11-02
     
  • Laurent JEN

    Laurent JEN - 2006-11-13

    Logged In: YES
    user_id=1528770

    yes, the sql update don't contain the variable $option

    $sql = "UPDATE ".$xoopsDB->prefix("newblocks")." SET
    name='".addslashes($blocks[$i]['name'])."',
    edit_func='".addslashes($editfunc)."', content='',
    template='".$template."', last_modified=".time()." WHERE
    bid=".$fblock['bid'];

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks