private function changeStatusOfOriginalMenus($active)
 {
     if ($active !== 0 && $active !== 1) {
         return true;
     }
     if (!empty($this->original_menus)) {
         foreach ($this->original_menus as $class_menu) {
             // change link of admin orders menu
             if ($class_menu == 'AdminParentOrders') {
                 $parent_orders_tab_id = (int) Configuration::get('ERP_ADMIN_PARENT_ORDERS_TAB_ID');
                 if ($parent_orders_tab_id > 0) {
                     $tab = new Tab($parent_orders_tab_id);
                     $tab->active = 1;
                     if ($active == 0) {
                         $tab->class_name = 'AdminAdvancedOrder';
                         $tab->module = 'erpillicopresta';
                     } else {
                         $tab->class_name = 'AdminParentOrders';
                         $tab->module = '';
                     }
                 }
             } else {
                 $id_tab = Tab::getIdFromClassName($class_menu);
                 if ($id_tab != 0) {
                     $tab = new Tab($id_tab);
                     $tab->active = (int) $active;
                 }
             }
             if (!$tab->update()) {
                 $this->_errors[] = $this->l('Error while updating original menus : ') . $class_menu . ' ' . $this->l('Please try again or contact the customer service.');
                 return false;
             }
         }
     }
     return true;
 }