Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.22k stars 2.72k forks source link

Replace MyObject in files of my new object #29852

Open STcodes opened 3 months ago

STcodes commented 3 months ago

Bug

Every time I want to create a new object, it creates an object named MyObject instead of the name entered. This is not the same error as what the other one solved by modifying the ModuleBuilder file. The names of the classes and sql files have no problem but those in these files do. As in the attached example. Even the name of my object displays MyObject. Capture d’écran (131)

Dolibarr Version

19.0

Environment PHP

8.1

Environment Database

SQL

Steps to reproduce the behavior and expected behavior

No response

Attached files

Capture d’écran (132)

lamrani002 commented 3 months ago

Hi, i tried to reproduce the issue, but it's work for me , need more informations

sonikf commented 3 months ago

Hi, I was able to replicate the issue and it happens only on older modules made with modulebuilder. At the same time a pop up warning is displayed Please check placement of start and end comments for Menus section in file modMYMODULEclass.php before submitting your action As soon as placement of start and end comments is properly adjusted objects are created normally again. So this is a feature not a bug..

lamrani002 commented 3 months ago

Ok I will tried with older modules and see if we can handle it