Works on canvas integration in third party module

This commit is contained in:
Regis Houssin 2010-09-01 08:14:01 +00:00
parent 5155b4422b
commit c15b95e40e
2 changed files with 6 additions and 9 deletions

View File

@ -82,12 +82,15 @@ class ThirdPartyDefault extends Societe
$form = new Form($db); $form = new Form($db);
if ($action == 'view')
{
// Confirm delete third party // Confirm delete third party
if ($_GET["action"] == 'delete') if ($_GET["action"] == 'delete')
{ {
$this->tpl['action_delete']=$form->formconfirm($_SERVER["PHP_SELF"]."?socid=".$this->id,$langs->trans("DeleteACompany"),$langs->trans("ConfirmDeleteCompany"),"confirm_delete",'',0,2); $this->tpl['action_delete']=$form->formconfirm($_SERVER["PHP_SELF"]."?socid=".$this->id,$langs->trans("DeleteACompany"),$langs->trans("ConfirmDeleteCompany"),"confirm_delete",'',0,2);
} }
} }
}
/** /**
* \brief Fetch datas list * \brief Fetch datas list

View File

@ -2146,12 +2146,6 @@ class Societe extends CommonObject
if ($action == 'view') if ($action == 'view')
{ {
// Confirm delete third party
if ($_GET["action"] == 'delete')
{
$this->tpl['action_delete']=$form->formconfirm($_SERVER["PHP_SELF"]."?socid=".$this->id,$langs->trans("DeleteACompany"),$langs->trans("ConfirmDeleteCompany"),"confirm_delete",'',0,2);
}
$this->tpl['showrefnav'] = $form->showrefnav($this,'socid','',($user->societe_id?0:1),'rowid','nom'); $this->tpl['showrefnav'] = $form->showrefnav($this,'socid','',($user->societe_id?0:1),'rowid','nom');
$this->tpl['checkcustomercode'] = $this->check_codeclient(); $this->tpl['checkcustomercode'] = $this->check_codeclient();