Estandarizacion del campo suggest.
This commit is contained in:
@@ -219,18 +219,12 @@ class pmDynaform
|
|||||||
$cells = array();
|
$cells = array();
|
||||||
foreach ($json->columns as $column) {
|
foreach ($json->columns as $column) {
|
||||||
//data
|
//data
|
||||||
if ($column->type === "text" || $column->type === "textarea" || $column->type === "dropdown" || $column->type === "datetime" || $column->type === "checkbox" || $column->type === "file" || $column->type === "link" || $value === "hidden") {
|
if ($column->type === "text" || $column->type === "textarea" || $column->type === "dropdown" || $column->type === "suggest" || $column->type === "datetime" || $column->type === "checkbox" || $column->type === "file" || $column->type === "link" || $value === "hidden") {
|
||||||
array_push($cells, array(
|
array_push($cells, array(
|
||||||
"value" => isset($row[$column->name]) ? $row[$column->name] : "",
|
"value" => isset($row[$column->name]) ? $row[$column->name] : "",
|
||||||
"label" => isset($row[$column->name . "_label"]) ? $row[$column->name . "_label"] : (isset($row[$column->name]) ? $row[$column->name] : "")
|
"label" => isset($row[$column->name . "_label"]) ? $row[$column->name . "_label"] : (isset($row[$column->name]) ? $row[$column->name] : "")
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
if ($column->type === "suggest") {
|
|
||||||
array_push($cells, array(
|
|
||||||
"value" => isset($row[$column->name . "_label"]) ? $row[$column->name . "_label"] : "",
|
|
||||||
"label" => isset($row[$column->name]) ? $row[$column->name] : ""
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$rows[$keyRow] = $cells;
|
$rows[$keyRow] = $cells;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user