diff --git a/htdocs/core/class/antivir.class.php b/htdocs/core/class/antivir.class.php index 8a43c28f8a4..e90c208d32e 100644 --- a/htdocs/core/class/antivir.class.php +++ b/htdocs/core/class/antivir.class.php @@ -68,7 +68,7 @@ class AntiVir $return_var=0; $safemode=ini_get("safe_mode"); // Create a clean fullcommand - dol_syslog("AntiVir::dol_avscan_file Run command=".$fullcommand." with safe_mode ".($safe_mode?"on":"off")); + dol_syslog("AntiVir::dol_avscan_file Run command=".$fullcommand." with safe_mode ".($safemode?"on":"off")); // Run CLI command. If run of Windows, you can get return with echo %ERRORLEVEL% $lastline=exec($fullcommand, $output, $return_var); diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 82be4f026e4..9af3ec03256 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -352,7 +352,7 @@ abstract class CommonObject $sql.= " AND ec.fk_c_type_contact=tc.rowid"; $sql.= " AND tc.element = '".$this->element."'"; - dol_syslog(get_class($object)."::swapContactStatus sql=".$sql); + dol_syslog(get_class($this)."::swapContactStatus sql=".$sql); $resql=$this->db->query($sql); if ($resql) { diff --git a/htdocs/core/class/html.formorder.class.php b/htdocs/core/class/html.formorder.class.php index 147b141c938..68c4a21b688 100644 --- a/htdocs/core/class/html.formorder.class.php +++ b/htdocs/core/class/html.formorder.class.php @@ -47,16 +47,17 @@ class FormOrder /** - * \brief Renvoie la liste des sources de commandes - * \param selected Id de la source pre-selectionnee - * \param htmlname Nom de la liste deroulante - * \param addempty 0=liste sans valeur nulle, 1=ajoute valeur inconnue - * \return array Tableau des sources de commandes + * Renvoie la liste des sources de commandes + * + * @param selected Id de la source pre-selectionnee + * @param htmlname Nom de la liste deroulante + * @param addempty 0=liste sans valeur nulle, 1=ajoute valeur inconnue + * @return array Tableau des sources de commandes */ function selectSourcesCommande($selected='',$htmlname='source_id',$addempty=0) { global $conf,$langs; - print ''; if ($addempty) print ''; // TODO Use a table called llx_c_input_reason diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index 679485a4a07..3ecc086a548 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -311,7 +311,6 @@ class FormOther $moreforfilter.='>'; $moreforfilter.=$obj_usr->firstname." ".$obj_usr->name." (".$obj_usr->login.')'; $moreforfilter.=''; - $i++; } $this->db->free($resql_usr); } diff --git a/htdocs/core/class/menubase.class.php b/htdocs/core/class/menubase.class.php index 53c05be3bb4..be940844072 100644 --- a/htdocs/core/class/menubase.class.php +++ b/htdocs/core/class/menubase.class.php @@ -395,7 +395,7 @@ class Menubase //print 'name='.$tab[$x][3].' pere='.$pere." ".$tab[$x][6]; $this->newmenu->add((! preg_match("/^(http:\/\/|https:\/\/)/i",$tab[$x][2])) ? $tab[$x][2] : $tab[$x][2], $tab[$x][3], $rang -1, $tab[$x][4], $tab[$x][5], $tab[$x][8]); - $this->recur($tab, $tab[$x][0], $rang +1, $lelfmenu); + $this->recur($tab, $tab[$x][0], $rang +1, $leftmenu); } } } diff --git a/htdocs/core/class/vcard.class.php b/htdocs/core/class/vcard.class.php index d54bf45643b..5b800867298 100755 --- a/htdocs/core/class/vcard.class.php +++ b/htdocs/core/class/vcard.class.php @@ -184,7 +184,7 @@ class vCard $key = "ADR"; if ($type!="") $key.= ";$type"; $key.= ";CHARSET=".$this->encoding; - $this->properties[$key] = encode($name).";".encode($extended).";".encode($street).";".encode($city).";".encode($region).";".encode($zip).";".encode($country); + $this->properties[$key] = ";".encode($extended).";".encode($street).";".encode($city).";".encode($region).";".encode($zip).";".encode($country); if ($this->properties["LABEL;$type;CHARSET=".$this->encoding] == "") { diff --git a/htdocs/core/lib/agenda.lib.php b/htdocs/core/lib/agenda.lib.php index 99e7050c096..0dc0583e481 100644 --- a/htdocs/core/lib/agenda.lib.php +++ b/htdocs/core/lib/agenda.lib.php @@ -374,6 +374,7 @@ function actions_prepare_head($action) /** * Define head array for tabs of agenda setup pages + * * @return Array of head */ function calendars_prepare_head($param) @@ -388,6 +389,8 @@ function calendars_prepare_head($param) $head[$h][2] = 'card'; $h++; + $object=(object) array(); + // Show more tabs from modules // Entries must be declared in modules descriptor with line // $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index 8ea11314e07..c839d4fe462 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -675,7 +675,7 @@ function check_value($mask,$value) $maskrefclient_maskclientcode=$regClientRef[1]; $maskrefclient_maskcounter=$regClientRef[2]; $maskrefclient_maskoffset=0; //default value of maskrefclient_counter offset - $maskrefclient_clientcode=substr($valueforccc,0,dol_strlen($maskrefclient_maskclientcode));//get n first characters of client code to form maskrefclient_clientcode + $maskrefclient_clientcode=substr('',0,dol_strlen($maskrefclient_maskclientcode));//get n first characters of client code to form maskrefclient_clientcode $maskrefclient_clientcode=str_pad($maskrefclient_clientcode,dol_strlen($maskrefclient_maskclientcode),"#",STR_PAD_RIGHT);//padding maskrefclient_clientcode for having exactly n characters in maskrefclient_clientcode $maskrefclient_clientcode=dol_string_nospecial($maskrefclient_clientcode);//sanitize maskrefclient_clientcode for sql insert and sql select like if (dol_strlen($maskrefclient_maskcounter) > 0 && dol_strlen($maskrefclient_maskcounter) < 3) return 'CounterMustHaveMoreThan3Digits'; diff --git a/htdocs/core/lib/member.lib.php b/htdocs/core/lib/member.lib.php index 65822f82972..59f6a150276 100644 --- a/htdocs/core/lib/member.lib.php +++ b/htdocs/core/lib/member.lib.php @@ -23,6 +23,7 @@ /** * Return array head with list of tabs to view object informations + * * @param object Member * @return array head */ diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php index f02565209c3..8a56766f46c 100644 --- a/htdocs/core/lib/project.lib.php +++ b/htdocs/core/lib/project.lib.php @@ -265,13 +265,10 @@ function select_projects($socid=-1, $selected='', $htmlname='projectid') function PLinesb(&$inc, $parent, $lines, &$level, &$projectsrole, &$tasksrole, $mytask=0) { global $user, $bc, $langs; - global $form; + global $form, $projectstatic, $taskstatic; $lastprojectid=0; - $projectstatic = new Project($db); - $taskstatic = new Task($db); - $var=true; $numlines=count($lines); @@ -380,12 +377,10 @@ function PLinesb(&$inc, $parent, $lines, &$level, &$projectsrole, &$tasksrole, $ function PLines(&$inc, $parent, &$lines, &$level, $var, $showproject, &$taskrole, $projectsListId='') { global $user, $bc, $langs; - + global $projectstatic, $taskstatic; + $lastprojectid=0; - $projectstatic = new Project($db); - $taskstatic = new Task($db); - $projectsArrayId=explode(',',$projectsListId); $numlines=count($lines); diff --git a/htdocs/core/login/functions_ldap.php b/htdocs/core/login/functions_ldap.php index 794187d5ca5..bf216533e17 100644 --- a/htdocs/core/login/functions_ldap.php +++ b/htdocs/core/login/functions_ldap.php @@ -84,9 +84,9 @@ function check_user_password_ldap($usertotest,$passwordtotest,$entitytotest) if ($ldapdebug) { dol_syslog("functions_ldap::check_user_password_ldap Server:".join(',',$ldap->server).", Port:".$ldap->serverPort.", Protocol:".$ldap->ldapProtocolVersion.", Type:".$ldap->serverType); - dol_syslog("functions_ldap::check_user_password_ldap uid/samacountname=".$ldapuserattr.", dn=".$ladpdn.", Admin:".$ldap->searchUser.", Pass:".$ldap->searchPassword); + dol_syslog("functions_ldap::check_user_password_ldap uid/samacountname=".$ldapuserattr.", dn=".$ldapdn.", Admin:".$ldap->searchUser.", Pass:".$ldap->searchPassword); print "DEBUG: Server:".join(',',$ldap->server).", Port:".$ldap->serverPort.", Protocol:".$ldap->ldapProtocolVersion.", Type:".$ldap->serverType."\n"; - print "DEBUG: uid/samacountname=".$ldapuserattr.", dn=".$ladpdn.", Admin:".$ldap->searchUser.", Pass:".$ldap->searchPassword."\n"; + print "DEBUG: uid/samacountname=".$ldapuserattr.", dn=".$ldapdn.", Admin:".$ldap->searchUser.", Pass:".$ldap->searchPassword."\n"; } $resultFetchLdapUser=0; diff --git a/htdocs/core/menus/standard/auguria.lib.php b/htdocs/core/menus/standard/auguria.lib.php index a1a18fb613b..be59ec95da4 100644 --- a/htdocs/core/menus/standard/auguria.lib.php +++ b/htdocs/core/menus/standard/auguria.lib.php @@ -204,7 +204,7 @@ function print_left_auguria_menu($db,$menu_array_before,$menu_array_after) print ''; print ''; print ''; print ''; print ''."\n"; diff --git a/htdocs/core/menus/standard/eldy.lib.php b/htdocs/core/menus/standard/eldy.lib.php index b886c26fca1..493eb821e53 100644 --- a/htdocs/core/menus/standard/eldy.lib.php +++ b/htdocs/core/menus/standard/eldy.lib.php @@ -601,7 +601,7 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after) print ''; print ''; print ''; print ''; print ''."\n"; diff --git a/htdocs/core/modules/cheque/pdf/pdf_blochet.class.php b/htdocs/core/modules/cheque/pdf/pdf_blochet.class.php index 1a0ef43a2bc..4672b95dbce 100644 --- a/htdocs/core/modules/cheque/pdf/pdf_blochet.class.php +++ b/htdocs/core/modules/cheque/pdf/pdf_blochet.class.php @@ -167,7 +167,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts $pdf->Output($_file,'F'); if (! empty($conf->global->MAIN_UMASK)) - @chmod($file, octdec($conf->global->MAIN_UMASK)); + @chmod($_file, octdec($conf->global->MAIN_UMASK)); $outputlangs->charset_output=$sav_charset_output; return 1; // Pas d'erreur @@ -359,7 +359,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts // On positionne le debut du bas de page selon nbre de lignes de ce bas de page $nbofline=dol_nboflines_bis($line,0,$outputlangs->charset_output); //print 'e'.$line.'t'.dol_nboflines($line);exit; - $posy=$marge_basse + ($nbofline*3) + ($line1?3:0) + ($line2?3:0); + $posy=$marge_basse + ($nbofline*3); if ($line) // Free text { @@ -372,7 +372,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts $pdf->line($marge_gauche, $page_hauteur-$posy, 200, $page_hauteur-$posy); $posy--; - if ($line1) + /*if ($line1) { $pdf->SetXY($marge_gauche,-$posy); $pdf->MultiCell(200, 2, $line1, 0, 'C', 0); @@ -383,7 +383,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts $posy-=3; $pdf->SetXY($marge_gauche,-$posy); $pdf->MultiCell(200, 2, $line2, 0, 'C', 0); - } + }*/ // Show page nb only on iso languages (so default Helvetica font) if (pdf_getPDFFont($outputlangs) == 'Helvetica') diff --git a/htdocs/core/modules/commande/mod_commande_saphir.php b/htdocs/core/modules/commande/mod_commande_saphir.php index c4eece7500b..9d26ed47ef1 100644 --- a/htdocs/core/modules/commande/mod_commande_saphir.php +++ b/htdocs/core/modules/commande/mod_commande_saphir.php @@ -48,7 +48,7 @@ class mod_commande_saphir extends ModeleNumRefCommandes $langs->load("bills"); - $form = new Form($db); + $form = new Form($this->db); $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= '
'; diff --git a/htdocs/core/modules/commande/modules_commande.php b/htdocs/core/modules/commande/modules_commande.php index b829321b019..732088d9afb 100644 --- a/htdocs/core/modules/commande/modules_commande.php +++ b/htdocs/core/modules/commande/modules_commande.php @@ -155,6 +155,8 @@ function commande_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0 global $conf,$user,$langs; $langs->load("orders"); + $error=0; + $dir = "/core/modules/commande/"; $srctemplatepath=''; $modelisok=0; diff --git a/htdocs/core/modules/contract/mod_contract_magre.php b/htdocs/core/modules/contract/mod_contract_magre.php index 5c71c303d5f..f963e3d02e5 100755 --- a/htdocs/core/modules/contract/mod_contract_magre.php +++ b/htdocs/core/modules/contract/mod_contract_magre.php @@ -43,7 +43,7 @@ class mod_contract_magre extends ModelNumRefContracts $langs->load("bills"); - $form = new Form($db); + $form = new Form($this->db); $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; diff --git a/htdocs/core/modules/dons/modules_don.php b/htdocs/core/modules/dons/modules_don.php index eeb7771e853..df917b1f5d9 100644 --- a/htdocs/core/modules/dons/modules_don.php +++ b/htdocs/core/modules/dons/modules_don.php @@ -177,7 +177,7 @@ function don_create($db, $id, $message, $modele, $outputlangs) // we delete preview files require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php"); - dol_delete_preview($object); + dol_delete_preview($obj); return 1; } else diff --git a/htdocs/core/modules/expedition/mod_expedition_ribera.php b/htdocs/core/modules/expedition/mod_expedition_ribera.php index 5363d435c2c..bf832c4042b 100755 --- a/htdocs/core/modules/expedition/mod_expedition_ribera.php +++ b/htdocs/core/modules/expedition/mod_expedition_ribera.php @@ -43,7 +43,7 @@ class mod_expedition_ribera extends ModelNumRefExpedition $langs->load("bills"); - $form = new Form($db); + $form = new Form($this->db); $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; diff --git a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php index 5743a724b35..faea0a306c8 100644 --- a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php +++ b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php @@ -166,7 +166,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures $langs->load("companies"); $langs->load("errors"); - $form = new Form($db); + $form = new Form($this->db); $texte = $this->description.".
\n"; $texte.= ''; @@ -266,11 +266,10 @@ class doc_generic_invoice_odt extends ModelePDFFactures { $id = $object; $object = new Facture($this->db); - $object->fetch($id); - + $result=$object->fetch($id); if ($result < 0) { - dol_print_error($db,$object->error); + dol_print_error($this->db,$object->error); return -1; } } diff --git a/htdocs/core/modules/facture/mod_facture_mercure.php b/htdocs/core/modules/facture/mod_facture_mercure.php index c18a185110d..b1ee4c11bf6 100644 --- a/htdocs/core/modules/facture/mod_facture_mercure.php +++ b/htdocs/core/modules/facture/mod_facture_mercure.php @@ -46,7 +46,7 @@ class mod_facture_mercure extends ModeleNumRefFactures $langs->load("bills"); - $form = new Form($db); + $form = new Form($this->db); $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; diff --git a/htdocs/core/modules/facture/modules_facture.php b/htdocs/core/modules/facture/modules_facture.php index 386fc2e5feb..27579626d11 100644 --- a/htdocs/core/modules/facture/modules_facture.php +++ b/htdocs/core/modules/facture/modules_facture.php @@ -149,6 +149,8 @@ function facture_pdf_create($db, $object, $message, $modele, $outputlangs, $hide $langs->load("bills"); + $error=0; + // Increase limit for PDF build $err=error_reporting(); error_reporting(0); diff --git a/htdocs/core/modules/fichinter/mod_arctic.php b/htdocs/core/modules/fichinter/mod_arctic.php index 9b8be8762aa..0616a58f070 100644 --- a/htdocs/core/modules/fichinter/mod_arctic.php +++ b/htdocs/core/modules/fichinter/mod_arctic.php @@ -52,7 +52,7 @@ class mod_arctic extends ModeleNumRefFicheinter $langs->load("bills"); - $form = new Form($db); + $form = new Form($this->db); $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; diff --git a/htdocs/core/modules/livraison/mod_livraison_saphir.php b/htdocs/core/modules/livraison/mod_livraison_saphir.php index e0bbc8665c9..8ebe1591c68 100644 --- a/htdocs/core/modules/livraison/mod_livraison_saphir.php +++ b/htdocs/core/modules/livraison/mod_livraison_saphir.php @@ -45,7 +45,7 @@ class mod_livraison_saphir extends ModeleNumRefDeliveryOrder $langs->load("bills"); - $form = new Form($db); + $form = new Form($this->db); $texte = $langs->trans('GenericNumRefModelDesc')."
\n"; $texte.= ''; diff --git a/htdocs/core/modules/livraison/pdf/pdf_sirocco.modules.php b/htdocs/core/modules/livraison/pdf/pdf_sirocco.modules.php index fa0f8acaec6..8f0d75ac593 100644 --- a/htdocs/core/modules/livraison/pdf/pdf_sirocco.modules.php +++ b/htdocs/core/modules/livraison/pdf/pdf_sirocco.modules.php @@ -234,7 +234,7 @@ class pdf_sirocco extends ModelePDFDeliveryOrder $tab_height_in_current_page=$tab_height_newpage; } - if (($nexY+$nblineFollowDesc) > ($tab_top_in_current_page+$tab_height_in_current_page) && $i < ($nblignes - 1)) + if (($nexY+$nblineFollowDesc) > ($tab_top_in_current_page+$tab_height_in_current_page) && $i < ($nblines - 1)) { if ($pagenb == 1) { diff --git a/htdocs/core/modules/livraison/pdf/pdf_typhon.modules.php b/htdocs/core/modules/livraison/pdf/pdf_typhon.modules.php index e65a12aad2f..ce32fa45bf9 100644 --- a/htdocs/core/modules/livraison/pdf/pdf_typhon.modules.php +++ b/htdocs/core/modules/livraison/pdf/pdf_typhon.modules.php @@ -298,7 +298,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder $tab_top_in_current_page=$tab_top_newpage; $tab_height_in_current_page=$tab_height_newpage; } - if (($nexY+$nblineFollowDesc) > ($tab_top_in_current_page+$tab_height_in_current_page) && $i < ($nblignes - 1)) + if (($nexY+$nblineFollowDesc) > ($tab_top_in_current_page+$tab_height_in_current_page) && $i < ($nblines - 1)) { if ($pagenb == 1) { @@ -344,7 +344,8 @@ class pdf_typhon extends ModelePDFDeliveryOrder // Check product remaining to be delivered // TODO doit etre modifie //$waitingDelivery = $object->getRemainingDelivered(); - + $waitingDelivery=''; + if (is_array($waitingDelivery) & !empty($waitingDelivery)) { $pdf->AddPage('P', 'A4'); diff --git a/htdocs/core/modules/mailings/framboise.modules.php b/htdocs/core/modules/mailings/framboise.modules.php index 3cc151abdda..6fb61212cc2 100644 --- a/htdocs/core/modules/mailings/framboise.modules.php +++ b/htdocs/core/modules/mailings/framboise.modules.php @@ -202,7 +202,7 @@ class mailing_framboise extends MailingTargets } else { - dol_print_error($db); + dol_print_error($this->db); } $s.=''; diff --git a/htdocs/core/modules/mailings/thirdparties.modules.php b/htdocs/core/modules/mailings/thirdparties.modules.php index 131ee661a18..39bcac186b3 100755 --- a/htdocs/core/modules/mailings/thirdparties.modules.php +++ b/htdocs/core/modules/mailings/thirdparties.modules.php @@ -218,7 +218,7 @@ class mailing_thirdparties extends MailingTargets } else { - dol_print_error($db); + dol_print_error($this->db); } $s.=''; diff --git a/htdocs/core/modules/modComptabilite.class.php b/htdocs/core/modules/modComptabilite.class.php index fd0cb925e1f..6bd9416babe 100644 --- a/htdocs/core/modules/modComptabilite.class.php +++ b/htdocs/core/modules/modComptabilite.class.php @@ -132,6 +132,8 @@ class modComptabilite extends DolibarrModules // Nettoyage avant activation $this->remove(); + $sql = array(); + return $this->_init($sql); } diff --git a/htdocs/core/modules/modContrat.class.php b/htdocs/core/modules/modContrat.class.php index 7ba03b23c9e..323362bc461 100644 --- a/htdocs/core/modules/modContrat.class.php +++ b/htdocs/core/modules/modContrat.class.php @@ -129,6 +129,8 @@ class modContrat extends DolibarrModules // Nettoyage avant activation $this->remove(); + $sql = array(); + return $this->_init($sql); } diff --git a/htdocs/core/modules/modMailing.class.php b/htdocs/core/modules/modMailing.class.php index a6ed37f1f88..b822dd46fee 100644 --- a/htdocs/core/modules/modMailing.class.php +++ b/htdocs/core/modules/modMailing.class.php @@ -111,6 +111,8 @@ class modMailing extends DolibarrModules // Permissions $this->remove(); + $sql = array(); + return $this->_init($sql); } diff --git a/htdocs/core/modules/modNotification.class.php b/htdocs/core/modules/modNotification.class.php index ca430eab2da..1dbb3155ac1 100644 --- a/htdocs/core/modules/modNotification.class.php +++ b/htdocs/core/modules/modNotification.class.php @@ -84,6 +84,8 @@ class modNotification extends DolibarrModules // Permissions $this->remove(); + $sql = array(); + return $this->_init($sql); } diff --git a/htdocs/core/modules/modTax.class.php b/htdocs/core/modules/modTax.class.php index de015e2348c..f1857409197 100644 --- a/htdocs/core/modules/modTax.class.php +++ b/htdocs/core/modules/modTax.class.php @@ -149,6 +149,8 @@ class modTax extends DolibarrModules // Nettoyage avant activation $this->remove(); + $sql = array(); + return $this->_init($sql); } diff --git a/htdocs/core/modules/modWorkflow.class.php b/htdocs/core/modules/modWorkflow.class.php index e4d66941ee0..d9965833c35 100644 --- a/htdocs/core/modules/modWorkflow.class.php +++ b/htdocs/core/modules/modWorkflow.class.php @@ -147,7 +147,10 @@ class modWorkflow extends DolibarrModules */ function init() { - //$result=$this->load_tables(); + // Permissions + $this->remove(); + + $sql = array(); return $this->_init($sql); } diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php index 8c6f5898a49..d60cd2fab74 100644 --- a/htdocs/projet/tasks.php +++ b/htdocs/projet/tasks.php @@ -132,6 +132,8 @@ if ($_POST["action"] == 'createtask' && $user->rights->projet->creer) $form=new Form($db); $formother=new FormOther($db); +$projectstatic = new Project($db); +$taskstatic = new Task($db); $help_url="EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos"; llxHeader("",$langs->trans("Tasks"),$help_url);