Skip to content

License with child results in template error #20976

@RuarriS

Description

@RuarriS

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

Version

11.0-rc4

Bug description

Creating a license, with child license results in a twig error when viewing the child record's pages. There is no 'save' button. I expect to be able to edit values on this page, and save them.

Image

Relevant log output

`Uncaught PHP Exception Twig\Error\RuntimeError: "An exception has been thrown during the rendering of a template ("Division by zero") in "pages/management/license_progressbar.html.twig" at line 39." at license_progressbar.html.twig line 39
  Backtrace :
  ...ges/management/license_progressbar.html.twig:39 `

Page URL

No response

Steps To reproduce

  1. Create a license
  2. Navigate to the "Licenses" tab on the new record
  3. Add a license
  4. Navigate to the "license" of the new child record and there will be an error

Your GLPI setup information

GLPI: 11.0.0-rc4 ( => /var/www/.../glpi)
Installation mode: TARBALL
Current language: en_US

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions