$installdefs parameter schedulers
in manifest.php is not respected as documented while installing a module
#10403
Labels
Area: Module
Issues & PRs related to modules that do not have specific label
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Severity: Moderate
Key function failed, but no or little impact
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
The documentation Module Installer states that there is a key for
schedulers
which would beThis means that these should be copied to the
schedulers
directory.However, in practice, this functionality does not work.
If you look at the
$manifestMap
inModuleInstall/ModuleScanner.php:51
as well$tasks
ModuleInstall/ModuleInstaller.php:123
you'll see there isn't actually a definition forschedulers
or ainstall_schedulers
task.The work around for this is you need to use the
copy
key like suchExpected Behavior
When installing a custom module with a
manifest.php
file that has a key forschedulers
, it should install the Scheduler. as documented.Actual Behavior
The key
schedulers
key in manifest is just ignored.Possible Fix
Add the correct functionality to
ModuleInstall/ModuleScanner.php:51
andModuleInstall/ModuleInstaller.php:123
Steps to Reproduce
manifest.php
to have an array with a key ofschedulers
Context
The documentation is wrong and takes a bit of debugging to figure out. You then need to use the
copy
key instead of a cleanerschedulers
key for what is actually going on.Your Environment
The text was updated successfully, but these errors were encountered: