Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lang issue at disclosure_full file #516

Merged

Conversation

oshriromatrix
Copy link
Contributor

hi this is the fix lang issue

@@ -145,7 +145,7 @@ class='css_button_small iframe' onclick='top.restoreSession()'><span><?php echo
<a href='#' class='deletenote css_button_small'
id='<?php echo text($iter{id}); ?>' onclick='top.restoreSession()'><span><?php echo xlt('Delete');?></span></a></td>
<td class="text" valign='top'><?php echo text($iter{recipient});?>&nbsp;</td>
<td class='text' valign='top'><?php if($event[1]=='healthcareoperations'){ echo xlt('health care operations'); } else echo text($event[1]); ?>&nbsp;</td>
<td class='text' valign='top'><?php if($event[1]=='healthcareoperations'){ echo xlt('health care operations'); } else echo xlt(text($event[1])); ?>&nbsp;</td>
Copy link
Sponsor Member

@bradymiller bradymiller Mar 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the correct way to do this would be the following:

<td class='text' valign='top'><?php echo text(getListItemTitle('disclosure_type',$event[1])); ?>&nbsp;</td>

Note this function is here: https://github.com/openemr/openemr/blob/master/library/options.inc.php#L3094

So, you also need to require_once the options.inc.php at top of this script for it to work.

@bradymiller
Copy link
Sponsor Member

review complete. see issue, which should be simple to address.

@oshriromatrix
Copy link
Contributor Author

oshriromatrix commented Mar 5, 2017

Hi, i improved the code according to your recommendations

@bradymiller bradymiller merged commit 6928702 into openemr:master Mar 6, 2017
@bradymiller
Copy link
Sponsor Member

looked good to brought into the codebase. thanks for the fix! -brady

@matrix-amiel matrix-amiel deleted the OR/fix_disclosure_full_lang branch May 17, 2017 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants