-
- Downloads
API/DAO - Improve permissioning sql clauses: support field names and OR
Before: selectWhereClause was limited to returning arrays of clauses which would be joined with AND. They could not reference any other fields on the entity. After: selectWhereClause can return sub-arrays which are joined with OR, and can reference any field on the entity using {curly_brace} syntax. Stricter type checking emits noisy deprecations if arrays are expected and strings are given.
Showing
- CRM/Contact/BAO/Query.php 3 additions, 1 deletionCRM/Contact/BAO/Query.php
- CRM/Core/BAO/Note.php 10 additions, 0 deletionsCRM/Core/BAO/Note.php
- CRM/Core/DAO.php 50 additions, 31 deletionsCRM/Core/DAO.php
- CRM/Utils/SQL.php 46 additions, 11 deletionsCRM/Utils/SQL.php
- ext/financialacls/financialacls.php 4 additions, 4 deletionsext/financialacls/financialacls.php
- ext/oauth-client/CRM/OAuth/BAO/OAuthContactToken.php 2 additions, 2 deletionsext/oauth-client/CRM/OAuth/BAO/OAuthContactToken.php
- tests/phpunit/CRM/Utils/SQLTest.php 15 additions, 0 deletionstests/phpunit/CRM/Utils/SQLTest.php
Loading
Please register or sign in to comment