Skip to content
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

After migration from 7.14 to 8.6 - Contracts subpanel in Accounts does not work #10440

Open
torinfo opened this issue Jun 3, 2024 · 5 comments
Labels
Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Type: Bug Bugs within the core SuiteCRM codebase

Comments

@torinfo
Copy link

torinfo commented Jun 3, 2024

Issue

After migration from SuiteCRM 7.14 to 8.6 the Contracts subpanel in Accounts gives an error in the browser console:

ERROR node_modules_angular…1a513b7cb4915e.js:1
TypeError: r.match is not a function

See attached file for the complete stacktrace. None of the other panels work until this panel is switched off again.

Possible Fix

No response

Steps to Reproduce the Issue

1. Go to an account (with a contract)
2. Switch on the Contracts sub-panel
3. The panel appers and only show the title (in my case) of the first contract. It show in th epagination how many contrats there should have been
There is an error in the console.

Context

I am trying to fid a contract through Accounts. The other way arround (Go to contracts and filter on account) seems to work fine.

The error stack that is reported in the browser console is attached.
crm.dlearning.nl-1717148537573.log.zip

Version

8.6.0

What browser are you currently using?

Chrome

Browser Version

Version 125.0.6422.77 (Official Build) (64-bit)

Environment Information

MariaDB 10.6.16, PHP 8.1.2

Operating System and Version

Ubuntu 22.04.4 LTS

@torinfo torinfo added the Type: Bug Bugs within the core SuiteCRM codebase label Jun 3, 2024
@torinfo
Copy link
Author

torinfo commented Jun 4, 2024

Found the problem.

Somehow in the metadat of the subpanel the type of the ACCOUNT_CONTRACT was 'date' instead of 'relate':

'contract_account' =>
array (
'type' => 'date',
'vname' => 'LBL_CONTRACT_ACCOUNT',
'width' => '20%',
'default' => true,
),

After changing it to 'relate' (and running reapair) the error disappears.

@torinfo torinfo closed this as completed Jun 4, 2024
@pgorod
Copy link
Contributor

pgorod commented Jun 4, 2024

@pgorod pgorod reopened this Jun 4, 2024
@SuiteBot
Copy link

SuiteBot commented Jun 4, 2024

This issue has been mentioned on SuiteCRM. There might be relevant details there:

https://community.suitecrm.com/t/after-migration-from-7-14-to-8-6-contracts-subpanel-in-accounts-does-not-work/92977/5

@torinfo
Copy link
Author

torinfo commented Jun 4, 2024

@pgorod Yes, you are absolutely correct, but as I have a custom definition, I did not notice this.

@johnM2401 johnM2401 added Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact labels Jun 4, 2024
@pgorod
Copy link
Contributor

pgorod commented Jun 4, 2024

Yeah, I am glad that I went and checked. I figured that this was a very illogical thing to put in the file, so you wouldn't have any reason to do it, it probably came from the original file. And there is was, an 11+ year-old bug...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

4 participants