Selaa lähdekoodia

Allow removal of tabs

For being able to remove or replace tabs, it is also necessary to call
this function with 'remove' mode.
Rüdiger Hahn 3 vuotta sitten
vanhempi
commit
d963aa8832
2 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 3 1
      htdocs/bom/lib/bom.lib.php
  2. 2 0
      htdocs/mrp/lib/mrp_mo.lib.php

+ 3 - 1
htdocs/bom/lib/bom.lib.php

@@ -54,7 +54,9 @@ function bomAdminPrepareHead()
 	//$this->tabs = array(
 	//	'entity:-tabname:Title:@bom:/bom/mypage.php?id=__ID__'
 	//); // to remove a tab
-	complete_head_from_modules($conf, $langs, null, $head, $h, 'bom');
+	complete_head_from_modules($conf, $langs, null, $head, $h, 'bom@mrp');
+
+	complete_head_from_modules($conf, $langs, $object, $head, $h, 'bom@mrp', 'remove');
 
 	return $head;
 }

+ 2 - 0
htdocs/mrp/lib/mrp_mo.lib.php

@@ -103,6 +103,8 @@ function moPrepareHead($object)
 	//	'entity:-tabname:Title:@mrp:/mrp/mypage.php?id=__ID__'
 	//); // to remove a tab
 	complete_head_from_modules($conf, $langs, $object, $head, $h, 'mo@mrp');
+	
+	complete_head_from_modules($conf, $langs, $object, $head, $h, 'mo@mrp', 'remove');
 
 	return $head;
 }