Update actions_extrafields.inc.php

add new type of extrafields "link" : linked to dolibarr element
This commit is contained in:
BENKE Charles 2015-03-14 12:04:00 +01:00
parent a2adeb2807
commit 41a05bc4ba

View File

@ -80,6 +80,13 @@ if ($action == 'add')
$mesg[]=$langs->trans("ErrorNoValueForCheckBoxType");
$action = 'create';
}
if (GETPOST('type')=='link' && !GETPOST('param'))
{
$error++;
$langs->load("errors");
$mesg[]=$langs->trans("ErrorNoValueForLinkType");
$action = 'create';
}
if (GETPOST('type')=='radio' && !GETPOST('param'))
{
$error++;