Re: wordbook m'apostrophe | Titre du sujet : Re: wordbook m'apostrophe par kraven30 sur 30/04/2008 14:01:21
Citation :par ailleurs impossible de changer une entrée de catégorie.
Dans admin/entry.php ligne 80
// Category selector
if ($xoopsModuleConfig['multicats'] == 1)
{
$mytree = new XoopsTree( $xoopsDB->prefix( "wbcategories" ), "categoryID" , "0" );
ob_start();
$sform -> addElement( new XoopsFormHidden( 'categoryID', $categoryID ) );
$mytree -> makeMySelBox( "name", "name", $categoryID );
$sform -> addElement( new XoopsFormLabel( _AM_WB_CATNAME, ob_get_contents() ) );
ob_end_clean();
}
remplace par
// Category selector
if ($xoopsModuleConfig['multicats'] == 1)
{
$mytree = new XoopsTree( $xoopsDB->prefix( "wbcategories" ), "categoryID" , "0" );
ob_start();
$sform_cat = new XoopsFormSelect(_AM_WB_CATNAME, "categoryID", $categoryID);
$sql = "SELECT categoryID, name FROM ".$xoopsDB->prefix("wbcategories")."";
$result = $xoopsDB->query($sql);
while ( $myrow = $xoopsDB->fetchArray($result) ) {
$sform_cat->addOption($myrow['categoryID'],$myrow['name']);
}
$sform->addElement($sform_cat, true);
ob_end_clean();
}
|
|