Skip to content

hotfix/AB#29535 - Bulk Approval Bugfix for Missing Approval Fields#1502

Merged
plavoie-BC merged 3 commits intomainfrom
hotfix/AB#29535-bulk-approval-error
Jul 15, 2025
Merged

hotfix/AB#29535 - Bulk Approval Bugfix for Missing Approval Fields#1502
plavoie-BC merged 3 commits intomainfrom
hotfix/AB#29535-bulk-approval-error

Conversation

@plavoie-BC
Copy link
Contributor

@plavoie-BC plavoie-BC commented Jul 15, 2025

This PR fixes a bug in the bulk approval functionality where approval fields were missing during form submission. The fix ensures that RequestedAmount and RecommendedAmount values are properly preserved and transmitted when processing bulk application approvals.

@plavoie-BC plavoie-BC requested a review from Copilot July 15, 2025 17:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the bulk approval functionality where approval fields were missing during form submission. The fix ensures that RequestedAmount and RecommendedAmount values are properly preserved and transmitted when processing bulk application approvals.

  • Adds hidden input fields to preserve disabled form values during submission
  • Implements server-side field mapping to ensure data integrity from the database
  • Includes IsDirectApproval field mapping for complete approval context

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ApproveApplicationsModal.cshtml Adds hidden input fields to preserve RequestedAmount and RecommendedAmount values during form submission
BulkApprovalsAppService.cs Maps RequestedAmount, RecommendedAmount, and IsDirectApproval fields directly from database to ensure data consistency

@plavoie-BC plavoie-BC requested a review from JamesPasta July 15, 2025 18:57
@plavoie-BC plavoie-BC marked this pull request as ready for review July 15, 2025 18:57
@plavoie-BC plavoie-BC changed the title AB#29535 - Bulk Approval Bugfix for Missing Approval Fields hotfix/AB#29535 - Bulk Approval Bugfix for Missing Approval Fields Jul 15, 2025
@plavoie-BC plavoie-BC merged commit 2bdf395 into main Jul 15, 2025
5 checks passed
@plavoie-BC plavoie-BC deleted the hotfix/AB#29535-bulk-approval-error branch July 15, 2025 20:32
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.

3 participants