Skip to content

Unnecessary label and value JSON structure visible in Email and Contact columns of exported file. #2172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sagarkumar-webkul opened this issue Apr 11, 2025 · 0 comments
Assignees
Labels

Comments

@sagarkumar-webkul
Copy link
Collaborator

Bug report

Title

Unnecessary label and value JSON structure visible in Email and Contact columns of exported file.

Issue Description

When exporting contacts from Krayin CRM, the Email and Contact Number columns contain raw JSON-like data such as {"value":"1234567890","label":"work"} instead of clean text values. This makes the exported data hard to read and use in spreadsheets or reports.

Preconditions

1. Framework Version: Krayin CRM v2.1
2. Commit ID:

Steps to reproduce

1. Go to Contacts > Persons.
2. Click the export button to download the contact list (.xls file).
3. Open the file and check the Email and Contact Number columns.

Expected result

  • The Email and Contact Number fields should contain only plain values:
    • 1234567890
    • user@example.com

Actual result

The exported file shows raw object data in Email and Contact columns:

  • {"value":"1234567890","label":"work"}
  • {"value":"user@example.com","label":"work"}

This makes the file less user-friendly and more difficult to work with.

Suggested Fix

  • Update the export logic to extract and display only the value part for Email and Contact fields.
  • Optionally, provide a separate column if label info is needed — but don't embed it in one field.
    Attaching exported file -

uwtvk.xls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants