Skip to content
Snippets Groups Projects
Verified Commit 42334720 authored by Damien's avatar Damien
Browse files

FEAT #9493 Clore resource

parent 87f2f071
No related branches found
No related tags found
No related merge requests found
...@@ -154,16 +154,18 @@ function manage_form($arr_id, $history, $id_action, $label_action, $status, $col ...@@ -154,16 +154,18 @@ function manage_form($arr_id, $history, $id_action, $label_action, $status, $col
} }
} }
$document = \Resource\models\ResModel::getOnView(['select' => $select, 'where' => ['res_id = ?'], 'data' => [$res_id]]); if (!empty($select)) {
if (!empty($document[0])) { $document = \Resource\models\ResModel::getOnView(['select' => $select, 'where' => ['res_id = ?'], 'data' => [$res_id]]);
foreach ($object['rawData'] as $key => $value) { }
if ($value == 'note') { foreach ($object['rawData'] as $key => $value) {
$tmpBodyData[$key] = $formValues['note_content_to_users']; if ($value == 'note') {
} elseif ($value == 'localeoId') { $tmpBodyData[$key] = $formValues['note_content_to_users'];
$tmpBodyData[$key] = $externalId['localeoId']; } elseif ($value == 'localeoId') {
} else { $tmpBodyData[$key] = $externalId['localeoId'];
$tmpBodyData[$key] = $document[0][$value]; } elseif (!empty($document[0][$value])) {
} $tmpBodyData[$key] = $document[0][$value];
} else {
$tmpBodyData[$key] = '';
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment