Commit 7cb86d79 authored by Son Nguyen's avatar Son Nguyen
Browse files

Enable Leap2A import/export license info for text boxes



(Bug #1193989)

Change-Id: I63bbe8e28fe76e7832b3dcdc28a0e86202bb70a4
Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
parent d2b438c5
......@@ -435,6 +435,9 @@ EOF;
$data = array(
'title' => $biconfig['title'],
'description' => $configdata['text'],
'license' => $configdata['license'],
'licensor' => $configdata['licensor'],
'licensorurl' => $configdata['licensorurl'],
'owner' => $viewconfig['owner'],
);
$artefact = new ArtefactTypeHtml(0, $data);
......@@ -466,14 +469,23 @@ EOF;
$result = array();
$text = '';
$license = '';
$licensor = '';
$licensorurl = '';
if (!empty($configdata['artefactid'])) {
$result['artefactid'] = json_encode(array($configdata['artefactid']));
$note = $bi->get_artefact_instance($configdata['artefactid']);
$text = $note->get('description');
$license = $note->get('license');
$licensor = $note->get('licensor');
$licensorurl = $note->get('licensorurl');
}
$result['text'] = json_encode(array($text));
$result['license '] = json_encode(array($license));
$result['licensor'] = json_encode(array($licensor));
$result['licensorurl'] = json_encode(array($licensorurl));
return $result;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment