Problem/Motivation
Contact entities have default start- and end dates.
In a scenario where it is not relevant to collect this information, the "Age" tab still shows up on the contact form.
Steps to reproduce
* Edit the "Person" contact type (/admin/structure/crm/contact-types/manage/person/form-display)
* Move the Start Date / End Date fields into the "Disabled" region
* Load the form for adding a new person contact (/crm/contact/add/person)
* An empty "Age" tab shows up at the bottom.
Proposed resolution
Only show the tab if it contains actual fields
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | After patch.png | 33.34 KB | anjuelsaphilip2020 |
| #4 | Before patch.png | 22.63 KB | anjuelsaphilip2020 |
Issue fork crm-3567927
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
svendecabooterComment #4
anjuelsaphilip2020 commentedHi, I've verified and tested MR!171 and applied the patch successfully on CRM 1.0.x-dev version. The changes are working as expected.
Following steps I followed:
Testing Result:After applying the patch, the Age tab no longer appears when Start Date and End Date fields are hidden.Only tabs containing visible fields are displayed on the form.
Attaching screenshots for reference.
Thanks
Comment #6
bluegeek9 commented