2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Allow for tokens to be imported

This commit is contained in:
Adam Zammit
2017-02-01 14:38:53 +11:00
parent 9b48b3eb3f
commit 20e80e3e4e
5 changed files with 44 additions and 4 deletions

View File

@@ -95,6 +95,18 @@ function verify_fields($fields)
}
}
//check that only 0 or 1 token fields selected
$count = 0;
foreach($names as $val)
{
if ($val == 9) $count++;
}
if ($count > 1)
{
return T_("No more than one field may be a token field");
}
//check that there is one and one only primary phone selected
$count = 0;
foreach($names as $val)