HOR-443
This commit is contained in:
@@ -38,15 +38,18 @@ class pmDynaform
|
|||||||
}
|
}
|
||||||
|
|
||||||
//todo: compatibility checkbox
|
//todo: compatibility checkbox
|
||||||
$json = G::json_decode($this->record["DYN_CONTENT"]);
|
if ($this->record !== null && isset($this->record["DYN_CONTENT"]) && $this->record["DYN_CONTENT"] !== "") {
|
||||||
$fields = $this->jsonsf2($json, "checkbox", "type");
|
$json = G::json_decode($this->record["DYN_CONTENT"]);
|
||||||
foreach ($fields as $field) {
|
$fields = $this->jsonsf2($json, "checkbox", "type");
|
||||||
if (isset($field->dataType) && $field->dataType === "string") {
|
foreach ($fields as $field) {
|
||||||
$field->type = "checkgroup";
|
if (isset($field->dataType) && $field->dataType === "string") {
|
||||||
|
$field->type = "checkgroup";
|
||||||
|
$field->dataType = "array";
|
||||||
|
}
|
||||||
|
$this->jsonReplace($json, $field->id, "id", $field);
|
||||||
}
|
}
|
||||||
$this->jsonReplace($json, $field->id, "id", $field);
|
$this->record["DYN_CONTENT"] = G::json_encode($json);
|
||||||
}
|
}
|
||||||
$this->record["DYN_CONTENT"] = G::json_encode($json);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDynaformTitle($idDynaform)
|
public function getDynaformTitle($idDynaform)
|
||||||
|
|||||||
Reference in New Issue
Block a user