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

Copy buttons in Account does not work #8738

Closed
QuickCRM opened this issue May 25, 2020 · 1 comment
Closed

Copy buttons in Account does not work #8738

QuickCRM opened this issue May 25, 2020 · 1 comment
Labels
Area: Module Issues & PRs related to modules that do not have specific label Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type: Bug Bugs within the core SuiteCRM codebase

Comments

@QuickCRM
Copy link
Contributor

The copy button in Accounts (copy account address to contacts) does not work.
It generates a PHP error:
Call to undefined method Contact::quoted() in XXX/include/database/DBManager.php on line 1818

Issue

Expected Behavior

Actual Behavior

Possible Fix

In Contact.php, replace
$select_query .= DBManager::concat($this->table_name, array('first_name', 'last_name')) . " name, ";

by
$select_query .= $this->db->concat($this->table_name, array('first_name', 'last_name')) . " name, ";

... or define concat function in DBManager as static

Steps to Reproduce

  1. Go to demo.suiteondemand.com
  2. Open an account
  3. Click Copy
  4. A blank popup opens

Context

Your Environment

  • SuiteCRM Version used: 7.10, 7.11
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)):
  • Environment name and version (e.g. MySQL, PHP 7):
  • Operating System and version (e.g Ubuntu 16.04):
@Mac-Rae
Copy link
Contributor

Mac-Rae commented May 26, 2020

Hi @QuickCRM,

This issue has been confirmed to exist and is replicable in the latest 7.10.x version.

Thanks 👍

@Mac-Rae Mac-Rae added Area: Module Issues & PRs related to modules that do not have specific label Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type: Bug Bugs within the core SuiteCRM codebase labels May 26, 2020
QuickCRM added a commit to QuickCRM/SuiteCRM that referenced this issue Jun 6, 2020
DBManager::concat is not defined as static.
It generates a PHP error:
Call to undefined method Contact::quoted() in XXX/include/database/DBManager.php on line 1818
mattlorimer pushed a commit that referenced this issue Jun 7, 2020
DBManager::concat is not defined as static.
It generates a PHP error:
Call to undefined method Contact::quoted() in XXX/include/database/DBManager.php on line 1818
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Module Issues & PRs related to modules that do not have specific label Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

3 participants