Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: The need/required list is wrong in Technical services provided page #7604

Closed
dolibarr95 opened this issue Oct 10, 2017 · 3 comments
Closed

Comments

@dolibarr95
Copy link
Contributor

Environment

  • Version: 6.0.0
  • OS: Linux otos.planethoster.net
  • Web server: LiteSpeed
  • PHP: 5.6.28
  • Database: MySQL or MariaDB 10.1.19-MariaDB
  • URL(s): admin/modules.php

Bug

I don't know if this is a bug or a misunderstanding on my part. The need/required list is wrong in Technical services provided page.

Actual behavior

In a module descriptor modmymod.class.php:

Case 1.

//$this->depends = array('thirdparty');
//$this->requiredby = array('factory');

will display in Technical services provided page:

This module need the module(s): None
This module is required by module(s): None

Case 2.

//$this->depends = array('thirdparty');
$this->requiredby = array('factory');

This module need the module(s): None
This module is required by module(s): factory

Case 3.

$this->depends = array('thirdparty');
//$this->requiredby = array('factory');

This module need the module(s): None
This module is required by module(s): None

Case 4.

$this->depends = array('thirdparty');
$this->requiredby = array('factory');

This module need the module(s): thirdparty
This module is required by module(s): factory

Expected behavior

Case 3.

$this->depends = array('thirdparty');
//$this->requiredby = array('factory');

This module need the module(s): thirdparty
This module is required by module(s): None

Tks!

@hregis
Copy link
Contributor

hregis commented Oct 10, 2017

@dolibarr95
file /admin/modulehelp.php line 368
wrong test :

if (count($objMod->requiredby)) $text.=join(',', $objMod->depends);

change with :

if (count($objMod->depends)) $text.=join(',', $objMod->depends);

@dolibarr95
Copy link
Contributor Author

Tks for this quick reply
I will make the PR know

dolibarr95 added a commit to dolibarr95/dolibarr that referenced this issue Oct 10, 2017
@dolibarr95
Copy link
Contributor Author

PR done tks.

eldy pushed a commit that referenced this issue Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants