Possible bug in setup.php code in Modulebuilder

Hello everyone. I am using v15.0.3. I use the module builder to create a new module, and then I added 2 objects in the module that i want to be able to generate references and documents for. On the settings page, for the documents, I get double the output for the documents. Here is the only changes I have made to the setup.php file.

See the attached screenshot for the output.

$moduledir = 'test123';
$myTmpObjects = array();
$myTmpObjects['blah1'] = array('includerefgeneration' => 1, 'includedocgeneration' => 1);
$myTmpObjects['blah2'] = array('includerefgeneration' => 1, 'includedocgeneration' => 1);

Output for Blah1

Output for Blah2

I think here is the bug. $filelist[] is keeping the old values on each loop. Need to nullify the array on each loop.

hello, may you post an issue or a pull request at on the github please ?

1 Like

Hello! Did you find a way to fix it?