Forum

Create a project
 
Notifications
Retirer tout

Create a project

3 Posts
2 Utilisateurs
0 Reactions
3,297 Vu
(@djackjack)
Posts: 49
Active Member
Début du sujet
 
[#1155]

Hello,
I made a new version of VX.XX and I would like to create a specific project as a test name.

I wanted to create in the maintenance.php in a state file (if ($ currVersion <"VX.XX") ...) and I made a new project and I filled out the name, custid, idle , idUser, doneidProjectType, codeType, idstatus and finally I called the save function.

Only when I go to see if the project was created, I find not.

There is a field that I have not met that prevents its creation?
There is another way to create the project (always in coding)?


 
Posté : 10 Mai PM 15:055
(@babynus)
Posts: 14952
Membre Admin
 

Hi,
It seems you did it the right way.
To really know what is happening, replace

$project->save();

with

debugLog($project->save());

You will then have result in log file, and will know why insert did not work.


 
Posté : 10 Mai PM 17:055
(@djackjack)
Posts: 49
Active Member
Début du sujet
 

Ok Thanks


 
Posté : 10 Mai PM 17:055
Share:
Retour en haut