Skip to content

Order with empty item #183

Closed
Closed

Description

@Megachip

Somehow I managed it to add nothing with a quantity of 1 to an order.
Sadly, this can't be removed and also I can't add any further items.
image

GLPI: 9.2.4
Orders: 2.0.2

Activity

  1. cedric-anne commented on Jul 26, 2018

    @cedric-anne
    Contributor

    Hi,

    Adding element without choosing an itemtype should not be allowed. Some checks have to be added.

    To fix your problem quickly, you can remove items from DB using this SQL command. It should not have side effects: DELETE FROM `glpi_plugin_order_orders_items` WHERE `plugin_order_orders_id` = 9 AND `itemtype` = '';.

    Regards

  2. Phorms commented on Nov 12, 2018

    @Phorms

    Hi,

    had an related error. A missing reference was the issue. Someone purged a product reference and an old order could not be viewed anymore. Tab "Order item" -> error, tab "Item delivered" -> error and tab "associated items" -> affected items were not listed.

    Reproduction: Delete a reference or change the plugin_order_references_id into a non-existing one (for testing).

    GLPI: 9.3.1
    Order: 2.1.1

    More checks would be nice.

    Regards

  3. stonebuzz commented on Nov 27, 2025

    @stonebuzz
    Contributor

    There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.

    If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue.
    If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.

    You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions