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(Core): prevent php warning #231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stonebuzz
Copy link
Contributor

Using self assignment

image

raises up a php warning

   {"user":"2@stanislas-asus-desktop"} 
[2024-08-27 13:24:55] glpiphplog.WARNING:   *** PHP Warning (2): Undefined array key "id" in /home/DEV/GLPI/10.0-bugfixes/plugins/escalade/inc/ticket.class.php at line 610
  Backtrace :
  plugins/escalade/inc/ticket.class.php:674          PluginEscaladeTicket::removeAssignUsers()
  plugins/escalade/hook.php:482                      PluginEscaladeTicket::item_add_user()
  src/Plugin.php:1713                                plugin_escalade_item_add_user()
  src/CommonDBTM.php:1390                            Plugin::doHook()
  src/CommonITILObject.php:1987                      CommonDBTM->add()
  src/Ticket.php:1345                                CommonITILObject->prepareInputForUpdate()
  src/CommonDBTM.php:1613                            Ticket->prepareInputForUpdate()
  front/ticket.form.php:210                          CommonDBTM->update()
  public/index.php:82                                require()

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.

1 participant