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,10 +82,13 @@ class ThirdPartyDefault extends Societe
$form = new Form($db);
// Confirm delete third party
if ($_GET["action"] == 'delete')
if ($action == 'view')
{
$this->tpl['action_delete']=$form->formconfirm($_SERVER["PHP_SELF"]."?socid=".$this->id,$langs->trans("DeleteACompany"),$langs->trans("ConfirmDeleteCompany"),"confirm_delete",'',0,2);
// 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);
}
}
}

View File

@ -2146,12 +2146,6 @@ class Societe extends CommonObject
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['checkcustomercode'] = $this->check_codeclient();