Skip to content
Snippets Groups Projects
Commit 41a05bc4 authored by Charles Benke's avatar Charles Benke
Browse files

Update actions_extrafields.inc.php

add new type of extrafields "link" : linked to dolibarr element
parent a2adeb28
Branches
Tags
No related merge requests found
...@@ -80,6 +80,13 @@ if ($action == 'add') ...@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment