Update actions_extrafields.inc.php
add new type of extrafields "link" : linked to dolibarr element
This commit is contained in:
parent
a2adeb2807
commit
41a05bc4ba
@ -80,6 +80,13 @@ if ($action == 'add')
|
|||||||
$mesg[]=$langs->trans("ErrorNoValueForCheckBoxType");
|
$mesg[]=$langs->trans("ErrorNoValueForCheckBoxType");
|
||||||
$action = 'create';
|
$action = 'create';
|
||||||
}
|
}
|
||||||
|
if (GETPOST('type')=='link' && !GETPOST('param'))
|
||||||
|
{
|
||||||
|
$error++;
|
||||||
|
$langs->load("errors");
|
||||||
|
$mesg[]=$langs->trans("ErrorNoValueForLinkType");
|
||||||
|
$action = 'create';
|
||||||
|
}
|
||||||
if (GETPOST('type')=='radio' && !GETPOST('param'))
|
if (GETPOST('type')=='radio' && !GETPOST('param'))
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user