Skip to content

Commit

Permalink
add eRx condition to primary business entity checkbox disable (#5781)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwaite authored Sep 24, 2022
1 parent 5277332 commit 5ba868e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/usergroup/facility_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function displayAlert() {
<?php
$disabled = '';
$resPBE = $facilityService->getPrimaryBusinessEntity(array("excludedId" => $my_fid));
if ($resPBE) {
if ($resPBE && ($GLOBALS['erx_enable'] ?? null)) {
$disabled = 'disabled';
}
?>
Expand Down

0 comments on commit 5ba868e

Please sign in to comment.