-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Person List Columns Configurable (#7147)
# Description & Issue number it closes #7021 I will make similar change for family list later. ## Screenshots (if appropriate) ### Before <img width="1421" alt="Screenshot 2024-09-15 at 11 10 11 PM" src="https://github.com/user-attachments/assets/441f0f44-eca1-4cad-a885-6e540f10f163"> ### Config Change Hide `Home Phone` and `Cell Phone`. <img width="1313" alt="Screenshot 2024-09-15 at 11 11 18 PM" src="https://github.com/user-attachments/assets/ea014948-f5b1-492e-84e9-281d0728452d"> ### After <img width="1421" alt="Screenshot 2024-09-15 at 11 23 49 PM" src="https://github.com/user-attachments/assets/c8456322-c154-4452-bc48-8017ed775f07"> ## How to test the changes? See the above screenshots Click View Active People after changing `Admin/ Edit General Settings / People Setup / sPersonListColumns` ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [X] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update # How Has This Been Tested? Docker # Checklist: - [X] My code follows the style guidelines of this project - [X] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [X] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [X] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules
- Loading branch information
Showing
3 changed files
with
89 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace ChurchCRM\dto; | ||
|
||
class ListColumn | ||
{ | ||
public string $name; | ||
public string $displayFunction; | ||
public string $emptyOrUnassigned; | ||
public string $visible; | ||
|
||
public function __construct(string $name, string $displayFunction, string $emptyOrUnassigned, string $visible) | ||
{ | ||
$this->name = $name; | ||
$this->displayFunction = $displayFunction; | ||
$this->emptyOrUnassigned = $emptyOrUnassigned; | ||
$this->visible = $visible; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters