Ajout d'une option de compatibilité pour les bridges n'utilisant pas le nouveau format

This commit is contained in:
teromene 2015-09-14 14:04:38 +01:00
parent 81f89b1246
commit eb24487807

View file

@ -158,7 +158,7 @@ CARD;
foreach($anUse as $argValue)
{
$idArg = 'arg-' . $bridgeReference . '-' . $anUseNum . '-' . $argValue['query-name'];
if($argValue['type'] == "text") {
if($argValue['type'] == null || $argValue['type'] == "text") { //If we have no type, treat it as a text field for compatibility
$card .= '<input id="' . $idArg . '" type="text" value="" placeholder="' . $argValue['value'] . '" name="' . $argValue['query-name'] . '" />' . PHP_EOL;
} else if($argValue['type'] == "list") {
$card .= '<select id="' . $idArg . '" name="' . $argValue['query-name'] . '" >' . PHP_EOL;