FIX javascript showempty error
FIX Contact tab not visible when using canvas
This commit is contained in:
parent
7fce02e72e
commit
2a579b707a
@ -599,6 +599,7 @@ 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;
|
||||||
|
var showempty = obj.showempty;
|
||||||
console.log("Run runJsCodeForEvent-'.$htmlname.' from selectCompaniesForNewContact id="+id+" method="+method+" showempty="+showempty+" url="+url+" htmlname="+htmlname);
|
console.log("Run runJsCodeForEvent-'.$htmlname.' from selectCompaniesForNewContact id="+id+" method="+method+" showempty="+showempty+" url="+url+" htmlname="+htmlname);
|
||||||
$.getJSON(url,
|
$.getJSON(url,
|
||||||
{
|
{
|
||||||
|
|||||||
@ -139,16 +139,6 @@ 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))
|
|
||||||
{
|
|
||||||
// -----------------------------------------
|
|
||||||
// When used with CANVAS
|
|
||||||
// -----------------------------------------
|
|
||||||
$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($object->id,$extralabels);
|
if (!empty($object->id)) $res=$object->fetch_optionals($object->id,$extralabels);
|
||||||
//if ($res < 0) { dol_print_error($db); exit; }
|
//if ($res < 0) { dol_print_error($db); exit; }
|
||||||
@ -181,7 +171,6 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
// End of page
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user