-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Conversation
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.
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)) { |
There was a problem hiding this comment.
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 ?
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 |
Yes. I agree to open.
…--Charles
On Fri, Jun 14, 2024 at 2:16 AM lvessiller-opendsi ***@***.***> wrote:
related bug #26921 <#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
<https://github.com/lvessiller-opendsi> ?
ok for me to close this PR
—
Reply to this email directly, view it on GitHub
<#28846 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADMYZ5EBIHJLNNCQAPFJCLZHKKGNAVCNFSM6AAAAABEWKKN6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRXGM4DSMZVGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes. I agree with closing the PR. Please excuse my previous mistaken
response.
…--Charles
On Sat, Jun 15, 2024 at 7:01 PM Charles Beasley ***@***.***>
wrote:
Yes. I agree to open.
--Charles
On Fri, Jun 14, 2024 at 2:16 AM lvessiller-opendsi <
***@***.***> wrote:
> related bug #26921 <#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
> <https://github.com/lvessiller-opendsi> ?
>
> ok for me to close this PR
>
> —
> Reply to this email directly, view it on GitHub
> <#28846 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AADMYZ5EBIHJLNNCQAPFJCLZHKKGNAVCNFSM6AAAAABEWKKN6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRXGM4DSMZVGI>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
@eldy |
ok i try to click on "close" :-) |
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:
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]