Skip to content

Unable to permanently delete an order #561

@tguichard25

Description

@tguichard25

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

GLPI Version

GLPI 11.0.5

Plugin version

2.12.6

Bug description

Hello,

After placing an order in the basket, when you try to permanently delete the order, you get an error message:

Relevant log output

MySQL query error: Unknown column 'plugin_order_orders_id' in 'where clause' (1054) in SQL query "SELECT * FROM `glpi_plugin_order_orderpayments` WHERE `plugin_order_orders_id` = '288'".
In ./src/DBmysql.php(405)
#0 ./src/DBmysqlIterator.php(126): DBmysql->doQuery()
#1 ./src/DBmysql.php(1074): DBmysqlIterator->execute()
#2 ./src/CommonDBTM.php(971): DBmysql->request()
#3 ./src/CommonDBTM.php(841): CommonDBTM->cleanRelationData()
#4 ./src/CommonDBTM.php(2179): CommonDBTM->deleteFromDB()
#5 ./src/MassiveAction.php(1427): CommonDBTM->delete()
#6 ./src/MassiveAction.php(1323): MassiveAction::processMassiveActionsForOneItemtype()
#7 ./src/MassiveAction.php(1301): MassiveAction->processForSeveralItemtypes()
#8 ./front/massiveaction.php(63): MassiveAction->process()
#9 ./src/Glpi/Controller/LegacyFileLoadController.php(64): require('...')
#10 ./vendor/symfony/http-kernel/HttpKernel.php(181): Glpi\Controller\LegacyFileLoadController->__invoke()
#11 ./vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#12 ./vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle()
#13 ./public/index.php(71): Symfony\Component\HttpKernel\Kernel->handle()
#14 {main}

Page URL

No response

Steps To reproduce

Create command
Remove command
Try to remove from bin

Your GLPI setup information

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions