Skip to content

Commit

Permalink
Fix for custom reports
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 16, 2024
1 parent 03f2169 commit 6c14daa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion class/actions_sellyoursaas.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ public function loadDataForCustomReports($parameters, &$action, $hookmanager)
$this->results['head'] = $head;

$arrayoftypes = array(
'packages' => array('label' => 'Packages', 'picto'=>'label', 'ObjectClassName' => 'Packages', 'enabled' => isModEnabled('sellyoursaas'), 'ClassPath' => "/sellyoursaas/class/packages.class.php", 'langs'=>'sellyousaas@sellyoursaas')
'packages@sellyoursaas' => array('label' => 'Packages', 'picto'=>'label', 'ObjectClassName' => 'Packages', 'enabled' => isModEnabled('sellyoursaas'), 'ClassPath' => "/sellyoursaas/class/packages.class.php", 'langs'=>'sellyousaas@sellyoursaas')
);
$this->results['arrayoftype'] = $arrayoftypes;

Expand Down
2 changes: 2 additions & 0 deletions class/packages.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class Packages extends CommonObject

public $module = 'sellyoursaas';

public $element_for_permission = 'sellyoursaas';

/**
* @var array Does packages support multicompany module ? 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
*/
Expand Down

0 comments on commit 6c14daa

Please sign in to comment.