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: delete entry in immunization #7346

Merged
merged 1 commit into from
May 26, 2024

Conversation

sathiya06
Copy link
Contributor

Added the delete class to the button which is used by the java script function to select the delete button.

Fixes #7345

Short description of what this resolves:

It fixes the issue with the delete button in the immunization list of a patient.

Changes proposed in this pull request:

Adding delete to the class attribute of the button element solves this issue because this triggers the javascript onclick function responsible for deleting the immunization entry.

Added the delete class to the button which is used by the java script function to select the delete button.
Copy link
Sponsor Member

@sjpadgett sjpadgett left a comment

Choose a reason for hiding this comment

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

Will try for patch 1.

@@ -822,7 +822,7 @@ function saveImmunizationObservationResults($id, $immunizationdata)

echo "<td><input type='checkbox' class='error' id='" . attr($row["id"]) . "' value='" . xlt('Error') . "' " . $checkbox . " /></td>";

echo "<td><button type='button' class='btn btn-danger btn-delete' id='" . attr($row["id"]) . "' value='" . xlt('Delete') . "'>" . xlt('Delete') . "</button></td>";
echo "<td><button type='button' class='delete btn btn-danger btn-delete' id='" . attr($row["id"]) . "' value='" . xlt('Delete') . "'>" . xlt('Delete') . "</button></td>";
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

This trigger class must have been removed during one of the many restyling forays. This is a bug fix so looks good to me.

@sjpadgett sjpadgett merged commit 707f69a into openemr:master May 26, 2024
25 checks passed
sjpadgett pushed a commit to sjpadgett/openemr that referenced this pull request May 26, 2024
Added the delete class to the button which is used by the java script function to select the delete button.

(cherry picked from commit 707f69a)
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.

bug: Cannot delete entry from immunization list
3 participants