Merge branch '7.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: htdocs/societe/contact.php
This commit is contained in:
commit
354198b31e
@ -609,7 +609,8 @@ class FormCompany
|
|||||||
var method = obj.method;
|
var method = obj.method;
|
||||||
var url = obj.url;
|
var url = obj.url;
|
||||||
var htmlname = obj.htmlname;
|
var htmlname = obj.htmlname;
|
||||||
console.log("Run runJsCodeForEvent-'.$htmlname.' from selectCompaniesForNewContact id="+id+" method="+method+" showempty="+showempty+" url="+url+" htmlname="+htmlname);
|
var showempty = obj.showempty;
|
||||||
|
console.log("Run runJsCodeForEvent-'.$htmlname.' from selectCompaniesForNewContact id="+id+" method="+method+" showempty="+showempty+" url="+url+" htmlname="+htmlname);
|
||||||
$.getJSON(url,
|
$.getJSON(url,
|
||||||
{
|
{
|
||||||
action: method,
|
action: method,
|
||||||
|
|||||||
@ -102,7 +102,7 @@ if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'e
|
|||||||
|
|
||||||
if (empty($reshook))
|
if (empty($reshook))
|
||||||
{
|
{
|
||||||
if ($cancel)
|
if ($cancel)
|
||||||
{
|
{
|
||||||
$action='';
|
$action='';
|
||||||
if (! empty($backtopage))
|
if (! empty($backtopage))
|
||||||
@ -139,51 +139,40 @@ llxHeader('',$title,$help_url);
|
|||||||
|
|
||||||
$countrynotdefined=$langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("SeeAbove").')';
|
$countrynotdefined=$langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("SeeAbove").')';
|
||||||
|
|
||||||
if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
|
|
||||||
|
if (!empty($object->id)) $res=$object->fetch_optionals($object->id,$extralabels);
|
||||||
|
//if ($res < 0) { dol_print_error($db); exit; }
|
||||||
|
|
||||||
|
|
||||||
|
$head = societe_prepare_head($object);
|
||||||
|
|
||||||
|
dol_fiche_head($head, 'contact', $langs->trans("ThirdParty"), 0, 'company');
|
||||||
|
|
||||||
|
$linkback = '<a href="'.DOL_URL_ROOT.'/societe/list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
|
||||||
|
|
||||||
|
dol_banner_tab($object, 'socid', $linkback, ($user->societe_id?0:1), 'rowid', 'nom', '', '', 0, '', '', 'arearefnobottom');
|
||||||
|
|
||||||
|
dol_fiche_end();
|
||||||
|
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
|
if ($action != 'presend')
|
||||||
{
|
{
|
||||||
// -----------------------------------------
|
// Contacts list
|
||||||
// When used with CANVAS
|
if (empty($conf->global->SOCIETE_DISABLE_CONTACTS))
|
||||||
// -----------------------------------------
|
|
||||||
$objcanvas->assign_values($action, $object->id, $object->ref); // Set value for templates
|
|
||||||
$objcanvas->display_canvas($action); // Show template
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
if (!empty($object->id)) $res=$object->fetch_optionals();
|
|
||||||
//if ($res < 0) { dol_print_error($db); exit; }
|
|
||||||
|
|
||||||
|
|
||||||
$head = societe_prepare_head($object);
|
|
||||||
|
|
||||||
dol_fiche_head($head, 'contact', $langs->trans("ThirdParty"), 0, 'company');
|
|
||||||
|
|
||||||
$linkback = '<a href="'.DOL_URL_ROOT.'/societe/list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
|
|
||||||
|
|
||||||
dol_banner_tab($object, 'socid', $linkback, ($user->societe_id?0:1), 'rowid', 'nom', '', '', 0, '', '', 'arearefnobottom');
|
|
||||||
|
|
||||||
dol_fiche_end();
|
|
||||||
|
|
||||||
print '<br>';
|
|
||||||
|
|
||||||
if ($action != 'presend')
|
|
||||||
{
|
{
|
||||||
// Contacts list
|
$result=show_contacts($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?socid='.$object->id);
|
||||||
if (empty($conf->global->SOCIETE_DISABLE_CONTACTS))
|
|
||||||
{
|
|
||||||
$result=show_contacts($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?socid='.$object->id);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Addresses list
|
|
||||||
if (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT))
|
|
||||||
{
|
|
||||||
$result=show_addresses($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?socid='.$object->id);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Addresses list
|
||||||
|
if (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT))
|
||||||
|
{
|
||||||
|
$result=show_addresses($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?socid='.$object->id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
// End of page
|
||||||
llxFooter();
|
llxFooter();
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user