•  
      request #37588 Cannot delete an artifact using the UI containing a burnup field
    Infos
    #37588
    Yannis ROSSETTO (rossettoy)
    2024-04-18 10:37
    2024-04-18 09:13
    39200
    Details
    Cannot delete an artifact using the UI containing a burnup field

    Given a tracker using a burnup field, if a tracker administrator wants to delete an artifact, then a fatal error is thrown:

    [error] Caught exception: JavaScript module asset or with associated CSS assets must be added before the page header is written:
    #0 /usr/share/tuleap/plugins/agiledashboard/include/AgileDashboard/FormElement/Burnup.php(171): Tuleap\Layout\BaseLayout->addJavascriptAsset()
    #1 /usr/share/tuleap/plugins/agiledashboard/include/AgileDashboard/FormElement/Burnup.php(143): Tuleap\AgileDashboard\FormElement\Burnup->buildPresenter()
    #2 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.php(692): Tuleap\AgileDashboard\FormElement\Burnup->fetchArtifactValueReadOnly()
    #3 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.php(456): Tracker_FormElement_Field->fetchArtifactValueForWebDisplay()
    #4 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Container.php(312): Tracker_FormElement_Field->fetchArtifactReadOnly()
    #5 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Container_Fieldset.php(69): Tracker_FormElement_Container->getContainerContent()
    #6 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Container.php(253): Tracker_FormElement_Container_Fieldset->fetchRecursiveArtifact()
    #7 /usr/share/tuleap/plugins/tracker/include/Tracker/Tracker.class.php(573): Tracker_FormElement_Container->fetchArtifactReadOnly()
    #8 /usr/share/tuleap/plugins/tracker/include/Tracker/Tracker.class.php(1547): Tracker->fetchFormElementsReadOnly()
    #9 /usr/share/tuleap/plugins/tracker/include/Tracker/Tracker.class.php(896): Tracker->displayAdminConfirmDelete()
    #10 /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerManager.class.php(149): Tracker->process()
    #11 /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerManager.class.php(167): TrackerManager->processSubElement()
    #12 /usr/share/tuleap/plugins/tracker/include/TrackerPluginDefaultController.php(45): TrackerManager->process()
    #13 /usr/share/tuleap/src/common/Request/FrontRouter.php(252): Tuleap\Tracker\TrackerPluginDefaultController->process()
    #14 /usr/share/tuleap/src/common/Request/FrontRouter.php(109): Tuleap\Request\FrontRouter->routeHandler()
    #15 /usr/share/tuleap/src/www/index.php(50): Tuleap\Request\FrontRouter->route()
    #16 {main}
    
    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Yannis ROSSETTO (rossettoy)
    Closed
    2024-04-18
    Attachments
    Empty
    References

    Follow-ups