Skip to content

Commit

Permalink
fix for new encounters form edit because of new hierarchy of frames
Browse files Browse the repository at this point in the history
  • Loading branch information
shachar058 committed Aug 22, 2017
1 parent 45b92c1 commit 5b9a251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions interface/forms/newGroupEncounter/save.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@
top.restoreSession();
<?php if ($mode == 'new') { ?>
//todo - checking necessary
parent.left_nav.setEncounter(<?php echo "'" . attr(oeFormatShortDate($date)) . "', '" . attr($encounter) . "', window.name"; ?>);
parent.parent.frames["left_nav"].setEncounter(<?php echo "'" . attr(oeFormatShortDate($date)) . "', '" . attr($encounter) . "', window.name"; ?>);
<?php } // end if new encounter ?>
parent.left_nav.loadFrame('enc2', window.name, '<?php echo $nexturl; ?>');
parent.parent.frames["left_nav"].loadFrame('enc2', parent.name, '<?php echo $nexturl; ?>');
</script>

</body>
Expand Down
4 changes: 2 additions & 2 deletions interface/forms/newpatient/save.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@
top.window.parent.left_nav.setPatientEncounter(EncounterIdArray,EncounterDateArray,CalendarCategoryArray);
top.restoreSession();
<?php if ($mode == 'new') { ?>
parent.left_nav.setEncounter(<?php echo "'" . attr(oeFormatShortDate($date)) . "', '" . attr($encounter) . "', window.name"; ?>);
parent.parent.frames["left_nav"].setEncounter(<?php echo "'" . attr(oeFormatShortDate($date)) . "', '" . attr($encounter) . "', window.name"; ?>);
<?php } // end if new encounter ?>
parent.left_nav.loadFrame('enc2', window.name, '<?php echo $nexturl; ?>');
parent.parent.frames["left_nav"].loadFrame('enc2', parent.name, '<?php echo $nexturl; ?>');
</script>

</body>
Expand Down

0 comments on commit 5b9a251

Please sign in to comment.