diff --git a/htdocs/mrp/index.php b/htdocs/mrp/index.php index 2a3249efdd9..18cef7f75ea 100644 --- a/htdocs/mrp/index.php +++ b/htdocs/mrp/index.php @@ -28,6 +28,7 @@ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/bom/class/bom.class.php'; +require_once DOL_DOCUMENT_ROOT.'/mrp/class/mo.class.php'; $hookmanager = new HookManager($db); @@ -46,6 +47,7 @@ $result=restrictedArea($user, 'bom|mrp'); */ $staticbom = new BOM($db); +$staticmo = new Mo($db); llxHeader('', $langs->trans("MRP"), ''); @@ -81,7 +83,7 @@ if ($conf->use_javascript_ajax) { //if ($row[1]!=-1 && ($row[1]!=3 || $row[2]!=1)) { - $dataseries[$obj->status]=$obj->nb; + $dataseries[$obj->status]=array(0=>$staticmo->LibStatut($obj->status), $obj->nb); $totalnb+=$obj->nb; } } diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php index 734af5cb7ff..b8d733789fc 100644 --- a/htdocs/projet/index.php +++ b/htdocs/projet/index.php @@ -144,7 +144,7 @@ if (! empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) // This is usele foreach($listofsearchfields as $key => $value) { if ($i == 0) print '