Skip to content

Commit

Permalink
Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 14.0
Browse files Browse the repository at this point in the history
Conflicts:
	htdocs/core/modules/modBarcode.class.php
	htdocs/fourn/class/fournisseur.commande.dispatch.class.php
  • Loading branch information
eldy committed Jul 16, 2021
2 parents 501bc85 + 34c3149 commit af1c43c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion htdocs/core/modules/modBarcode.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function __construct($db)

// Main menu entries
$r = 0;

$this->menu[$r] = array(
'fk_menu'=>'fk_mainmenu=tools', // Use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
'mainmenu'=>'tools',
Expand All @@ -106,7 +107,7 @@ public function __construct($db)
'enabled'=>'$conf->barcode->enabled', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
'perms'=>'($conf->global->MAIN_USE_ADVANCED_PERMS && $user->rights->barcode->lire_advance) || (! $conf->global->MAIN_USE_ADVANCED_PERMS)', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
'target'=>'',
'user'=>2, // 0=Menu for internal users, 1=external users, 2=both
'user'=>0, // 0=Menu for internal users, 1=external users, 2=both
);
$r++;

Expand Down
13 changes: 6 additions & 7 deletions htdocs/fourn/class/fournisseur.commande.dispatch.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,12 @@ public function create($user, $notrigger = 0)
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX.$this->table_element);

if (!$notrigger) {
// Uncomment this and change MYOBJECT to your own tag if you
// want this action calls a trigger.

//// Call triggers
//$result=$this->call_trigger('MYOBJECT_CREATE',$user);
//if ($result < 0) { $error++; //Do also what you must do to rollback action if trigger fail}
//// End call triggers
// Call triggers
$result=$this->call_trigger('LINERECEPTION_CREATE', $user);
if ($result < 0) {
$error++;
}
// End call triggers
}
}

Expand Down

0 comments on commit af1c43c

Please sign in to comment.