replace fetch_projet() and fetch_project() by fetchProject() (#29821)

* fix cti

* fix cti

* deprecate fetch_projet fetch_project to fetchProject

* deprecate fetch_projet fetch_project to fetchProject

* deprecate fetch_projet fetch_project to fetchProject

* odfHandler->setSegment only throw OdfExceptionSegmentNotFound

* odfHandler->setSegment only throw OdfExceptionSegmentNotFound

* fix deprecated

* fix

* fix sql
This commit is contained in:
Frédéric FRANCE
2024-10-26 22:43:44 +02:00
committed by GitHub
parent 3acbd6e006
commit 0f563edb5f
34 changed files with 99 additions and 84 deletions

View File

@@ -3804,7 +3804,7 @@ class Commande extends CommonOrder
if (!$nofetch) {
$langs->load('project');
if (is_null($this->project) || (is_object($this->project) && $this->project->isEmpty())) {
$res = $this->fetch_project();
$res = $this->fetchProject();
if ($res > 0 && $this->project instanceof Project) {
$datas['project'] = '<br><b>'.$langs->trans('Project').':</b> '.$this->project->getNomUrl(1, '', 0, 1);
}