New: possibility to defined a tab for all entities in module descriptor
This commit is contained in:
parent
6ef0b8e330
commit
b70dfd0d54
@ -35,6 +35,7 @@ For developers:
|
|||||||
- New: Function yn can show a visual checkbox.
|
- New: Function yn can show a visual checkbox.
|
||||||
- New: Introduced select2 jquery plugin.
|
- New: Introduced select2 jquery plugin.
|
||||||
- New: Possibility to add javascript in main login page with "getLoginPageOptions" hook
|
- New: Possibility to add javascript in main login page with "getLoginPageOptions" hook
|
||||||
|
- New: possibility to defined a tab for all entities in module descriptor
|
||||||
|
|
||||||
WARNING: Following changes may create regression for some external modules, but was necessary to make
|
WARNING: Following changes may create regression for some external modules, but was necessary to make
|
||||||
Dolibarr better:
|
Dolibarr better:
|
||||||
|
|||||||
@ -1000,7 +1000,18 @@ print $sql;
|
|||||||
$i=0;
|
$i=0;
|
||||||
foreach ($this->tabs as $key => $value)
|
foreach ($this->tabs as $key => $value)
|
||||||
{
|
{
|
||||||
if ($value)
|
if (is_array($value) && count($value) == 0) continue; // Discard empty arrays
|
||||||
|
|
||||||
|
$entity=$conf->entity;
|
||||||
|
$newvalue = $value;
|
||||||
|
|
||||||
|
if (is_array($value))
|
||||||
|
{
|
||||||
|
$newvalue = $value['data'];
|
||||||
|
if (isset($value['entity'])) $entity = $value['entity'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($newvalue)
|
||||||
{
|
{
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (";
|
||||||
$sql.= "name";
|
$sql.= "name";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user