Merged in richardnoel/processmaker (pull request #1620)

add suport checkbox yes/no in grid and form bug-PM-1699
This commit is contained in:
Julio Cesar Laura Avendaño
2015-03-07 13:52:05 -04:00

View File

@@ -169,7 +169,7 @@ class pmDynaform
$cells = array();
foreach ($json->columns as $column) {
//data
if ($column->type === "text" || $column->type === "textarea" || $column->type === "dropdown" || $column->type === "datetime") {
if ($column->type === "checkbox" || $column->type === "text" || $column->type === "textarea" || $column->type === "dropdown" || $column->type === "datetime") {
array_push($cells, array(
"value" => isset($row[$column->name]) ? $row[$column->name] : "",
"label" => isset($row[$column->name . "_label"]) ? $row[$column->name . "_label"] : ""