# HG changeset patch # User Nicholas Jillings # Date 1515759387 0 # Node ID 12b90c6ff910ce12c08081ca9c334d92d5eebe5f # Parent 39ffb48949ded53125b23fd9182d13156c624e34 WIP for #262 diff -r 39ffb48949de -r 12b90c6ff910 php/save.php --- a/php/save.php Tue Jan 09 16:27:56 2018 +0000 +++ b/php/save.php Fri Jan 12 12:16:27 2018 +0000 @@ -89,7 +89,7 @@ $sn1 = findNodeByAttribute($n1, "location", "pre"); $sn2 = findNodeByAttribute($n2, "location", "pre"); if ($sn1 != 0) { - if ($sn2 != 0 && $sn2.getAttribute("state") != "complete") { + if ($sn2 != 0) { $saved_root->removeChild($sn2); $sn2 = 0; } @@ -102,7 +102,7 @@ $sn1 = findNodeByAttribute($n1, "location", "post"); $sn2 = findNodeByAttribute($n2, "location", "post"); if ($sn1 != 0) { - if ($sn2 != 0 && $sn2.getAttribute("state") != "complete") { + if ($sn2 != 0) { $saved_root->removeChild($sn2); $sn2 = 0; } @@ -124,7 +124,7 @@ $ref = $page->getAttribute("ref"); if (!empty($ref)) { $pn2 = findNodeByAttribute($n2, "ref", $ref); - if ($pn2 != 0 && $pn2.getAttribute("state") != "complete") { + if ($pn2 != 0) { $saved_root->removeChild($pn2); $pn2 = 0; }