Works on canvas integration in third party module
This commit is contained in:
parent
5155b4422b
commit
c15b95e40e
@ -82,10 +82,13 @@ class ThirdPartyDefault extends Societe
|
|||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
|
|
||||||
// Confirm delete third party
|
if ($action == 'view')
|
||||||
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);
|
// 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user