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

Cherry pick sjp 702 #7409

Merged
merged 2 commits into from Apr 25, 2024
Merged

Cherry pick sjp 702 #7409

merged 2 commits into from Apr 25, 2024

Conversation

sjpadgett
Copy link
Sponsor Member

Sherwins and me

stephenwaite and others added 2 commits April 25, 2024 18:24
…mr#7391)

* fix: check for empty array before looking for offsite document

* silence php warning

* Changed up event logic,fixed bugs

Instead of having the url splitting and parsing in the document class,
I pass the file path into the PatientRetrieveOffsiteDocument event and
let the module writer be responsible for parsing the url.  This ensures
that we handle any kind of url variety that is needed.

Fixed up the event dispatcher throwing an error because it wasn't even
set in the class...

Fixed the setter in the event and exposed the URL property.  No idea how
this was even working in the module.

* Bug fix prevent firing events if empty file

Made it so that if the filename is empty that the event will not be
fired.

Changed up the URL so you can get the entire URL schema (which is what I
thought was originally happening but apparently it wasn't).  This means
schemas such as s3:// ftp:// webdav:// etc can be handled by the class
properly.

Also changed up the event so you can get the entire saved document as an
object if additional meta information is needed by the offsite document
event handler.

---------

Co-authored-by: Stephen Nielson <snielson@discoverandchange.com>
(cherry picked from commit a7a58d3)
- this needs a rewrite but maybe later

(cherry picked from commit 548db01)
@sjpadgett sjpadgett merged commit 24b7ed2 into openemr:rel-702 Apr 25, 2024
21 checks passed
@sjpadgett sjpadgett deleted the cherrypick_sjp_702 branch April 25, 2024 23:50
}
if ($tasked == 'downloadLog') {
$wenoLog->insertWenoLog("prescription", "Invalid Prescriber Credentials User Download.");
echo(js_escape($error));
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

text()
(same as commit in master)

exit;
}
$wenoLog->insertWenoLog("prescription", "Invalid Prescriber Credentials Hint:see previous errors.");
echo(js_escape($error));
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

text()
(same as commit in master)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants