Qual: Start to fight deprecated code use reported by
https://scrutinizer-ci.com/g/eldy/dolibarr/issues/develop?orderField=path&order=asc
This commit is contained in:
parent
cfc337a79a
commit
d7163fe543
@ -195,16 +195,6 @@ if ($resql)
|
|||||||
if ($status == 'done') $title=$langs->trans("DoneActions");
|
if ($status == 'done') $title=$langs->trans("DoneActions");
|
||||||
if ($status == 'todo') $title=$langs->trans("ToDoActions");
|
if ($status == 'todo') $title=$langs->trans("ToDoActions");
|
||||||
|
|
||||||
/*if ($socid)
|
|
||||||
{
|
|
||||||
$societe = new Societe($db);
|
|
||||||
$societe->fetch($socid);
|
|
||||||
$newtitle=$langs->trans($title).' '.$langs->trans("For").' '.$societe->nom;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$newtitle=$langs->trans($title);
|
|
||||||
}*/
|
|
||||||
$newtitle=$langs->trans($title);
|
$newtitle=$langs->trans($title);
|
||||||
|
|
||||||
$tabactive='';
|
$tabactive='';
|
||||||
@ -298,7 +288,7 @@ if ($resql)
|
|||||||
{
|
{
|
||||||
$societestatic->id=$obj->socid;
|
$societestatic->id=$obj->socid;
|
||||||
$societestatic->client=$obj->client;
|
$societestatic->client=$obj->client;
|
||||||
$societestatic->nom=$obj->societe;
|
$societestatic->name=$obj->societe;
|
||||||
print $societestatic->getNomUrl(1,'',10);
|
print $societestatic->getNomUrl(1,'',10);
|
||||||
}
|
}
|
||||||
else print ' ';
|
else print ' ';
|
||||||
|
|||||||
@ -304,7 +304,7 @@ elseif ($action == 'edit')
|
|||||||
$societe->fetch($socid);
|
$societe->fetch($socid);
|
||||||
$head = societe_prepare_head($societe);
|
$head = societe_prepare_head($societe);
|
||||||
|
|
||||||
dol_fiche_head($head, 'card', $societe->nom);
|
dol_fiche_head($head, 'card', $societe->name);
|
||||||
|
|
||||||
print_titre($langs->trans("EditAddress"));
|
print_titre($langs->trans("EditAddress"));
|
||||||
print "<br>\n";
|
print "<br>\n";
|
||||||
@ -407,7 +407,7 @@ else
|
|||||||
$societe->fetch($object->socid);
|
$societe->fetch($object->socid);
|
||||||
$head = societe_prepare_head($societe);
|
$head = societe_prepare_head($societe);
|
||||||
|
|
||||||
dol_fiche_head($head, 'customer', $societe->nom);
|
dol_fiche_head($head, 'customer', $societe->name);
|
||||||
|
|
||||||
|
|
||||||
// Confirmation delete
|
// Confirmation delete
|
||||||
|
|||||||
@ -58,6 +58,7 @@ class Societe extends CommonObject
|
|||||||
* @deprecated Use $name instead
|
* @deprecated Use $name instead
|
||||||
*/
|
*/
|
||||||
var $nom;
|
var $nom;
|
||||||
|
|
||||||
var $firstname;
|
var $firstname;
|
||||||
var $lastname;
|
var $lastname;
|
||||||
var $particulier;
|
var $particulier;
|
||||||
@ -65,6 +66,7 @@ class Societe extends CommonObject
|
|||||||
var $address;
|
var $address;
|
||||||
var $zip;
|
var $zip;
|
||||||
var $town;
|
var $town;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 0=activity ceased, 1= in activity
|
* 0=activity ceased, 1= in activity
|
||||||
* @var int
|
* @var int
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user