forked from Wavyzz/dolibarr
Fix: Not error when migrating from version using exotic menu manager.
Fix: Delete of member use id
This commit is contained in:
@@ -690,6 +690,9 @@ class Adherent extends CommonObject
|
|||||||
$error=0;
|
$error=0;
|
||||||
$errorflag=0;
|
$errorflag=0;
|
||||||
|
|
||||||
|
// Check parameters
|
||||||
|
if (empty($rowid)) $rowid=$this->id;
|
||||||
|
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
// Remove category
|
// Remove category
|
||||||
|
|||||||
@@ -823,9 +823,9 @@ if (! defined('NOREQUIREMENU'))
|
|||||||
foreach($dirmenus as $dirmenu)
|
foreach($dirmenus as $dirmenu)
|
||||||
{
|
{
|
||||||
$menufound=dol_include_once($dirmenu."standard/".$file_menu);
|
$menufound=dol_include_once($dirmenu."standard/".$file_menu);
|
||||||
if ($menufound) break;
|
if (class_exists('MenuManager')) break;
|
||||||
}
|
}
|
||||||
if (! $menufound) // If failed to include, we try with standard
|
if (! class_exists('MenuManager')) // If failed to include, we try with standard eldy_menu.php
|
||||||
{
|
{
|
||||||
dol_syslog("You define a menu manager '".$file_menu."' that can not be loaded.", LOG_WARNING);
|
dol_syslog("You define a menu manager '".$file_menu."' that can not be loaded.", LOG_WARNING);
|
||||||
$file_menu='eldy_menu.php';
|
$file_menu='eldy_menu.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user