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

Add ifnull method to db abstraction layer #8811

Open
wants to merge 55 commits into
base: hotfix
Choose a base branch
from

Conversation

oc666
Copy link

@oc666 oc666 commented Jul 6, 2020

Adding ifnull method to db abstraction.

Description

After PR 7428 regression raised on ms sql server driver, as ifnull does not supported on this DB.

To reproduce the issue just connect to SuiteCRM with ms sql server db.

Motivation and Context

mysql ifnull used in audit and it does not support in sql server.

How To Test This

Just configure your DB, and go change log of one of the entities with existing history.

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 and others added 30 commits March 25, 2020 21:40
allow business hours to calculate when possible
…ield()

Don't use array_keys() twice and fix typo in variable name '$panelId'.
strip out entries for email and newsletter does not work for non-english speaking users
expected  'Customer','Prospect'
but returns 'Customer\\',\\'Prospect'
because $ db->quote is applied twice if strpos($args[$i], ',') !== false, leading to a wrong result

Also, $enable = false leads to an error as $db is not defined in that case
Add css for case updates textarea to allow horizontal resize
Always group by the main group by field to prevent duplicate groups is cases where the main group by field is not grouped in the report
in_array() expects parameter 2 to be array, null given in rebuild
Undefined index: SERVER_SOFTWARE in install_utils.php
getModuleField is called twice with the same parameters
Remove and replace legacy Reports with AOR_Reports
language files are fr_FR.js and de_DE.js
These files are not found because the file loaded is strtolower($GLOBALS['current_language']) .js
That might happen for all other languages where language contains capital letters.
On custom fields with the required attribute not set, can throw a notice
Dillon-Brown and others added 25 commits June 2, 2020 17:36
Task Status key is displayed instead of label in View History (so, it is not using translation)
- Revert "Fixed salesagility#7696 - Folder "include/SugarCharts/Jit" missing in 7.11.7 installation"
This reverts commit 7e21c58.

- Revert "Fix travis JIT failure"
This reverts commit b761318.

- Revert "Remove JIT"
This reverts commit f4764ed.
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
…matting

Change Depreciation log to more appropriate Info log
Update query to be compatible with SQL server, reduce 6 hours to 2
prevent 500 error when manifest is missing ior cannot be read
…field

Change TinyMCE to be instance specific
@SuiteBot
Copy link

SuiteBot commented Aug 27, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
12 out of 14 committers have signed the CLA.

✅ tsitle
✅ mattlorimer
✅ pgorod
✅ QuickCRM
✅ Dillon-Brown
✅ serfreeman1337
✅ cameronblaikie
✅ oc666
✅ JackBuchanan
✅ Jason-Dang
✅ lazka
✅ tsmgeek
❌ processflowca
❌ gitbnw
You have signed the CLA already but the status is still pending? Let us recheck it.

@mattlorimer mattlorimer changed the base branch from 7.10.x to hotfix November 9, 2022 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet