Commit 7f8e18ff authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon

Bug 1635503: DB ids when saving framework

behatnotneeded

Change-Id: I0da0f1a960d07fd0671ad4ffa0379e0e7ddec63b
(cherry picked from commit 3537b416)
parent 9f4e4f3d
......@@ -337,7 +337,9 @@ class Framework {
}
}
$standardsvars = array('shortname','name','description');
if (isset($this->standards) && is_array($this->standards)) {
$uniqueids = array();
foreach ($this->standards['standards'] as $key => $standard) {
$sfordb = new stdClass();
$sfordb->framework = $this->id;
......@@ -363,7 +365,7 @@ class Framework {
$standard->options = $standard->standardelement;
}
if ($sid && isset($standard->options) && is_array($standard->options)) {
$uniqueids = array();
$priority = 0;
foreach ($standard->options as $option) {
$priority++;
......
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