Commit ca048fa9 authored by Rebecca Blundell's avatar Rebecca Blundell Committed by Robert Lyon

Bug 1635503: JSON editor fixes for 19.04

-refactor variables to be more sensible
-add hidden watched pid field to the schema, remove stdid field
-functions to populate parentid dropdown

behatnotneeded
Change-Id: I5df071beeb9fa505a575cca5b6f8cb574bff06b4
(cherry picked from commit c142392e)
parent efcfb4d3
......@@ -31,6 +31,7 @@ else {
$framework_id = param_variable('framework_id', null);
$table = 'framework';
//@TODO - check error invalid arg for foreach "framework", "6") -> ln 54
$fw_data = get_framework($table, $framework_id);
function get_framework($table, $select, $se_depth=0) {
......@@ -50,7 +51,6 @@ function get_framework($table, $select, $se_depth=0) {
$data['standards'] = $standard_data;
$se_data = array();
foreach ($standard_data as $sk => $se) {
if (record_exists_select('framework_standard_element', "standard='$se->id'")) {
$se_data = get_records_array('framework_standard_element', 'standard', $se->id, 'priority');
......
This diff is collapsed.
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