fix: display total enquiry count in dashboard Enquiries tab title#2689
Merged
Armanul46 merged 1 commit intosovware:developmentfrom Feb 9, 2026
Merged
Conversation
The Enquiries tab was missing the count badge that other tabs (e.g. My Listings) already displayed. Fetch the total from ATBDP()->formgent->get_kpis() and append it using the same sprintf pattern.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
What kind of change does this PR introduce?
Description
The "Enquiries" tab on the user dashboard did not display the total enquiry count next to its title, unlike the "My Listings" tab which shows its count (e.g.
My Listings (12)).Solution
The total enquiry count is now fetched using:
ATBDP()->formgent->get_kpis()The count is appended to the tab title using the same
sprintfpattern, resulting in:Enquiries (5)Before
https://share.cleanshot.com/LqhyvwK1
After
https://prnt.sc/s1yd7AcKNI3P
Changed File
includes/model/ListingDashboard.phpNotes
$is_formgent_activecheckAny linked issues
Fixes #
Checklist