CoreBOSBB
import custom modules from 5.5 to 7 - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Development (https://discussions.corebos.org/forum-18.html)
+--- Forum: coreBOS Development (https://discussions.corebos.org/forum-4.html)
+---- Forum: coreBOS (https://discussions.corebos.org/forum-5.html)
+---- Thread: import custom modules from 5.5 to 7 (/thread-1145.html)



import custom modules from 5.5 to 7 - gmarcog - 07-11-2018

hello

I am trying to import a custom module from corebos 5.5 to a clean instalation of corebos 7, but I find two troubles:

In a first moment, I need to find and write the function getcriteria_options(), because it is called in line 157 of listView.php and it isnĀ“t declarate. When I paste it in include/Utils/SearchUtils.php it works. Then the module appears but, when I try to create a new item, the screen dont show the fields..


[Image: certiarmas.jpg]

The url is http://corebos7.renovarcarnetconducirenvalencia.com/index.php?module=CertArma&action=EditView&return_action=DetailView&parenttab=ptab

What could be the problem? Thanks...


RE: import custom modules from 5.5 to 7 - joebordes - 07-11-2018

Do not recover the getcriteria_options function. That function is obsolete and has been eliminated.

You must always update your module's files with the latest version of module files that are in the vtlib/ModuleDir directory.

In other words, update all the files in your module to be in sync with the files in vtlib/ModuleDir, that should fix the problem and give your module access to all the new features in coreBOS.

BTW, the image you attach is the typical error of not having updated the tabdata.php file, make sure you have correct permissions on that file.

Keep asking...


RE: import custom modules from 5.5 to 7 - gmarcog - 07-11-2018

Hi Joe

It works!!. I replace the files and the module works perfectly. Thanks!


RE: import custom modules from 5.5 to 7 - joebordes - 07-11-2018

:-)