Bug #5470

SQL error during injection : Users are not calculated and the plugin try to insert "name" instead of "id"

Added by Miridan over 3 years ago.

Status:NewStart date:02/26/2016
Priority:HighDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

  • MySQL query error:
    SQL: UPDATE `glpi_computers`
    SET `users_id` = \'tech\' WHERE `id` =\'326\'
    Error: Incorrect integer value: 'tech' for column 'users_id' at row 1
    Backtrace :
    inc/commondbtm.class.php:357
    inc/commondbtm.class.php:1116 CommonDBTM->updateInDB()
    ...injection/inc/commoninjectionlib.class.php:1501 CommonDBTM->update()
    ...injection/inc/commoninjectionlib.class.php:1415 PluginDatainjectionCommonInjectionLib->effectiveAddOrUpdate()
    ...atainjection/inc/computerinjection.class.php:90 PluginDatainjectionCommonInjectionLib->processAddOrUpdate()
    plugins/datainjection/inc/engine.class.php:145 PluginDatainjectionComputerInjection->addOrUpdateObject()
    ...datainjection/inc/clientinjection.class.php:249 PluginDatainjectionEngine->injectLine()
    ...datainjection/inc/clientinjection.class.php:204 PluginDatainjectionClientInjection::processInjection()
    ...datainjection/front/clientinjection.form.php:38 PluginDatainjectionClientInjection::showInjectionForm()

Also available in: Atom PDF