FIX #8189
This commit is contained in:
parent
825a295294
commit
5eee292663
@ -46,7 +46,7 @@ $action = GETPOST('action', 'alpha');
|
|||||||
|
|
||||||
if ($action == 'updateoptions')
|
if ($action == 'updateoptions')
|
||||||
{
|
{
|
||||||
if (GETPOST('activate_RESOURCE_USE_SEARCH_TO_SELECT'))
|
if (GETPOST('activate_RESOURCE_USE_SEARCH_TO_SELECT') != '')
|
||||||
{
|
{
|
||||||
if (dolibarr_set_const($db, "RESOURCE_USE_SEARCH_TO_SELECT", GETPOST('activate_RESOURCE_USE_SEARCH_TO_SELECT'), 'chaine', 0, '', $conf->entity))
|
if (dolibarr_set_const($db, "RESOURCE_USE_SEARCH_TO_SELECT", GETPOST('activate_RESOURCE_USE_SEARCH_TO_SELECT'), 'chaine', 0, '', $conf->entity))
|
||||||
{
|
{
|
||||||
@ -70,7 +70,7 @@ print load_fiche_titre($langs->trans('ResourceSetup'),$linkback,'title_setup');
|
|||||||
|
|
||||||
$head=resource_admin_prepare_head();
|
$head=resource_admin_prepare_head();
|
||||||
|
|
||||||
dol_fiche_head($head, 'general', $langs->trans("ResourceSingular"), 0, 'action');
|
dol_fiche_head($head, 'general', $langs->trans("ResourceSingular"), -1, 'action');
|
||||||
|
|
||||||
print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'">';
|
print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
|||||||
@ -74,7 +74,7 @@ print "<br>\n";
|
|||||||
|
|
||||||
$head=resource_admin_prepare_head();
|
$head=resource_admin_prepare_head();
|
||||||
|
|
||||||
dol_fiche_head($head, 'attributes', $langs->trans("ResourceSingular"), 0, 'action');
|
dol_fiche_head($head, 'attributes', $langs->trans("ResourceSingular"), -1, 'action');
|
||||||
|
|
||||||
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
||||||
|
|
||||||
|
|||||||
@ -40,7 +40,7 @@ function resource_prepare_head($object)
|
|||||||
$head[$h][2] = 'resource';
|
$head[$h][2] = 'resource';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if (empty($conf->global->MAIN_DISABLE_CONTACTS_TAB))
|
if (empty($conf->global->MAIN_DISABLE_CONTACTS_TAB) && (empty($conf->global->RESOURCE_HIDE_ADD_CONTACT_USER) || empty($conf->global->RESOURCE_HIDE_ADD_CONTACT_THIPARTY)))
|
||||||
{
|
{
|
||||||
$nbContact = count($object->liste_contact(-1,'internal')) + count($object->liste_contact(-1,'external'));
|
$nbContact = count($object->liste_contact(-1,'internal')) + count($object->liste_contact(-1,'external'));
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/resource/contact.php?id='.$object->id;
|
$head[$h][0] = DOL_URL_ROOT.'/resource/contact.php?id='.$object->id;
|
||||||
|
|||||||
@ -1766,6 +1766,6 @@ MAIN_PDF_MARGIN_BOTTOM=Bottom margin on PDF
|
|||||||
##### Resource ####
|
##### Resource ####
|
||||||
ResourceSetup=Configuration du module Resource
|
ResourceSetup=Configuration du module Resource
|
||||||
UseSearchToSelectResource=Use a search form to choose a resource (rather than a drop-down list).
|
UseSearchToSelectResource=Use a search form to choose a resource (rather than a drop-down list).
|
||||||
DisabledResourceLinkUser=Disabled resource link to user
|
DisabledResourceLinkUser=Disable feature to link a resource to users
|
||||||
DisabledResourceLinkContact=Disabled resource link to contact
|
DisabledResourceLinkContact=Disable feature to link a resource to contacts
|
||||||
ConfirmUnactivation=Confirm module reset
|
ConfirmUnactivation=Confirm module reset
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user