Skip to content

Commit

Permalink
added global for showing 'all' option when editing/viewing recursive …
Browse files Browse the repository at this point in the history
…appointment (openemr#454)
  • Loading branch information
shachar058 authored and bradymiller committed Jan 27, 2017
1 parent acfc431 commit b1f0b4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interface/main/calendar/add_edit_event.php
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,9 @@ function isRegularRepeat($repeat){
<div id="recurr_popup" style="visibility: hidden; position: absolute; top: 50px; left: 50px; width: 400px; border: 3px outset yellow; background-color: yellow; padding: 5px;">
<?php echo xlt('Apply the changes to the Current event only, to this and all Future occurrences, or to All occurrences?') ?>
<br>
<input type="button" name="all_events" id="all_events" value=" <?php echo xla('All'); ?> ">
<?php if($GLOBALS['submit_changes_for_all_appts_at_once']) {?>
<input type="button" name="all_events" id="all_events" value=" <?php echo xla('All'); ?> ">
<?php } ?>
<input type="button" name="future_events" id="future_events" value="<?php echo xla('Future'); ?>">
<input type="button" name="current_event" id="current_event" value="<?php echo xla('Current'); ?>">
<input type="button" name="recurr_cancel" id="recurr_cancel" value="<?php echo xla('Cancel'); ?>">
Expand Down
8 changes: 8 additions & 0 deletions library/globals.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,14 @@
xl('Maximum number of times a Patient can be tested in a year. Zero is no limit.')
),

'submit_changes_for_all_appts_at_once' => array(
xl('Submit Changes For All Appts At Once'),
'bool', // data type
'1', // default
xl('Enables to submit changes for all appointments of a recurrence at once.')
),


),

// Security Tab
Expand Down

0 comments on commit b1f0b4d

Please sign in to comment.