Skip to content

Commit

Permalink
Qual: Start to fight deprecated code use reported by
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 20, 2014
1 parent cfc337a commit d7163fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
12 changes: 1 addition & 11 deletions htdocs/comm/action/listactions.php
Expand Up @@ -195,16 +195,6 @@
if ($status == 'done') $title=$langs->trans("DoneActions");
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);

$tabactive='';
Expand Down Expand Up @@ -298,7 +288,7 @@
{
$societestatic->id=$obj->socid;
$societestatic->client=$obj->client;
$societestatic->nom=$obj->societe;
$societestatic->name=$obj->societe;
print $societestatic->getNomUrl(1,'',10);
}
else print ' ';
Expand Down
4 changes: 2 additions & 2 deletions htdocs/comm/address.php
Expand Up @@ -304,7 +304,7 @@
$societe->fetch($socid);
$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 "<br>\n";
Expand Down Expand Up @@ -407,7 +407,7 @@
$societe->fetch($object->socid);
$head = societe_prepare_head($societe);

dol_fiche_head($head, 'customer', $societe->nom);
dol_fiche_head($head, 'customer', $societe->name);


// Confirmation delete
Expand Down
8 changes: 5 additions & 3 deletions htdocs/societe/class/societe.class.php
Expand Up @@ -58,13 +58,15 @@ class Societe extends CommonObject
* @deprecated Use $name instead
*/
var $nom;

var $firstname;
var $lastname;
var $particulier;
var $civility_id;
var $address;
var $zip;
var $town;

/**
* 0=activity ceased, 1= in activity
* @var int
Expand Down Expand Up @@ -443,7 +445,7 @@ function create($user='')
{
// Call trigger
$result=$this->call_trigger('COMPANY_CREATE',$user);
if ($result < 0) $error++;
if ($result < 0) $error++;
// End call triggers
}
else $error++;
Expand Down Expand Up @@ -879,7 +881,7 @@ function update($id, $user='', $call_trigger=1, $allowmodcodeclient=0, $allowmod
{
// Call trigger
$result=$this->call_trigger('COMPANY_MODIFY',$user);
if ($result < 0) $error++;
if ($result < 0) $error++;
// End call triggers
}

Expand Down Expand Up @@ -1245,7 +1247,7 @@ function delete($id)

// Call trigger
$result=$this->call_trigger('COMPANY_DELETE',$user);
if ($result < 0) $error++;
if ($result < 0) $error++;
// End call triggers

if (! $error)
Expand Down

0 comments on commit d7163fe

Please sign in to comment.