Skip to content

Removed comment in SQL Query#849

Open
TheGarious wants to merge 1 commit intoSuiteCRM:hotfixfrom
TheGarious:Fix-Comment-Query-SQL
Open

Removed comment in SQL Query#849
TheGarious wants to merge 1 commit intoSuiteCRM:hotfixfrom
TheGarious:Fix-Comment-Query-SQL

Conversation

@TheGarious
Copy link
Contributor

Description

Motivation and Context

In my log in SuiteCRM, i see this :

[986][ab5dbb39-421f-4e6c-5ed7-5e3d7ca402d3][FATAL] Query Failed: SELECT COUNT(id) FROM ( SELECT aos_quotes.*, accounts.id AS account_id, accounts.name AS billing_account, opportunity_id AS opportunity, billing_contact_id AS billing_contact, '' AS created_by_name, '' AS modified_by_name, '' AS assigned_user_name FROM aos_products JOIN aos_products_quotes ON aos_products_quotes.product_id = aos_products.id AND aos_products.id = '4b41bc8f-5f3a-398a-9155-6453bcc7f0c2' AND aos_products_quotes.deleted = 0 AND aos_products.deleted = 0 JOIN aos_quotes ON aos_quotes.id = aos_products_quotes.parent_id AND aos_quotes.stage = 'Closed Accepted' AND aos_quotes.deleted = 0 JOIN accounts ON accounts.id = aos_quotes.billing_account_id -- AND accounts.deleted = 0 GROUP BY aos_quotes.id ) AS aos_quotes LIMIT 1: MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1

And look in AOS_Products.php i saw a comment in SQL query.

How To Test This

In Quotes view, you have this error in logs

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • My code follows the code style of this project found here.
  • My change requires a change to the documentation.
  • I have read the How to Contribute guidelines.

@mattlorimer mattlorimer added Type:Suite7 Issue Specific to SuiteCRM 7 that should be in the SuiteCRM 7 repo Status:Requires Updates Issues & PRs which requires input or update from the author labels Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status:Requires Updates Issues & PRs which requires input or update from the author Type:Suite7 Issue Specific to SuiteCRM 7 that should be in the SuiteCRM 7 repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants