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

Update functions.lib.php #28795 #28846

Closed
wants to merge 1 commit into from
Closed

Conversation

carmelchas
Copy link
Contributor

Promote modification from Pull request #26921 to v18 to resolve issues related to Issue breaking project and third-party dropdowns with reasonably acceptable filters that fail this test.

Instructions

This is a template to help you make good pull requests. You may use Github Markdown syntax to format your issue report.
Please:

  • only keep the "FIX", "CLOSE", "NEW", "PERF" or "QUAL" section (use uppercase to have the PR appears into the ChangeLog, lowercase will not appears)
  • follow the project contributing guidelines
  • replace the bracket enclosed texts with meaningful information

FIX|Fix #[issue_number Short description]

[Long description]

CLOSE|Close #[issue_number Short description]

[Long description]

NEW|New [Short description]

[Long description]

PERF|Perf #[issue_number Short description]

[Long description]

QUAL|Qual #[issue_number Short description]

[Long description]

Promote modification from Pull request Dolibarr#26921 to v18 to resolve issues related to Issue breaking project and third-party dropdowns with reasonably acceptable filters that fail this test.
@carmelchas
Copy link
Contributor Author

Please help. I really need this bug to be fixed.

@@ -12017,7 +12017,7 @@ function forgeSQLFromUniversalSearchCriteria($filter, &$errorstr = '', $noand =
$t = preg_replace_callback('/'.$regexstring.'/i', 'dolForgeDummyCriteriaCallback', $filter);
$t = str_replace(array('and','or','AND','OR',' '), '', $t); // Remove the only strings allowed between each () criteria
// If the string result contains something else than '()', the syntax was wrong
if (preg_match('/[^\(\)]/', $t)) {
if (!preg_match('/[^\(\)]/', $t)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old code looks good.
What value do you have for "$filter" at begin of function ?

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Mar 14, 2024
@rycks
Copy link
Contributor

rycks commented Jun 14, 2024

related bug #26921 is closed with more details about the right filter to use then that PR could be closed too i think

for me : pr to close @lvessiller-opendsi ?

@lvessiller-opendsi
Copy link
Contributor

related bug #26921 is closed with more details about the right filter to use then that PR could be closed too i think

for me : pr to close @lvessiller-opendsi ?

ok for me to close this PR

@rycks rycks requested a review from eldy June 14, 2024 07:25
@carmelchas
Copy link
Contributor Author

carmelchas commented Jun 16, 2024 via email

@carmelchas
Copy link
Contributor Author

carmelchas commented Jun 16, 2024 via email

@lvessiller-opendsi
Copy link
Contributor

@eldy
This PR can be closed.

@rycks
Copy link
Contributor

rycks commented Jul 4, 2024

ok i try to click on "close" :-)

@rycks rycks closed this Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants