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

fix: SQL error when user ID missing #3523

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

Rom1-B
Copy link
Contributor

@Rom1-B Rom1-B commented Jul 24, 2024

Changes description

Prevent SQL error :

  Error: 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 ') AND  ( glpi_plugin_formcreator_issues.entities_id = '0'  )  AND (   `gl...' at line 48
  Backtrace :
  src/Search.php:1460                                DBmysql->doQuery()
  src/SavedSearch.php:1340                           Search::constructData()
  src/SavedSearch.php:1266                           SavedSearch->execute()
  src/CronTask.php:1035                              SavedSearch::croncountAll()
  front/cron.php:87                                  CronTask::launch()

image_paste6272085

Checklist

Please check if your PR fulfills the following specifications:

  • Tests for the changes have been added
  • Docs have been added/updated

References

ref !33894

@Rom1-B Rom1-B requested a review from btry July 24, 2024 08:37
@btry btry merged commit 17c0358 into pluginsGLPI:support/2.13.0 Jul 24, 2024
4 checks passed
@Rom1-B Rom1-B deleted the support_33894 branch July 24, 2024 08:50
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.

2 participants