•  
      request #10528 Edit Trove Categorization don't display combobox to set categories
    Infos
    #10528
    Lucio Palmieri (lpalmieri)
    2017-08-18 16:56
    2017-08-07 10:19
    10773
    Details
    Edit Trove Categorization don't display combobox to set categories
    In Tuleap version 9.10.99.64 on CentOS 6.9 with PHP 5.3.3
    When I try to edit the Trove Categorization in project admin,
    i see the list of root categories but i don't see the combobox to set category values.

    The problem seems in
    www/include/trove.php: 144
    for ($i=1;$i<=$GLOBALS['TROVE_MAXPERROOT'];$i++) {

    my PHP version don't resolve the global var $TROVE_MAXPERROOT in its defined value 3.

    I'm not a PHP programmer but I've noticed that if I am substituting:
    $TROVE_MAXPERROOT = 3;
    with
    global $TROVE_MAXPERROOT;
    $TROVE_MAXPERROOT = 3;
    in www/include/trove.php: 11
    I see the combobox.

    Otherwise I see the combobox if I change
    require_once('trove.php');
    in
    require('trove.php');
    in src/www/project/admin/group_trove.php: 25

    Googling, I have read: "in PHP 5.3, variables must be declared global outside the function if you want to use it globally within the function." (link https://forum.joomla.org/viewtopic.php?t=498905).

    Best Regards
    Lucio

    Project admin
    9.10
    CentOS 6
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2017-08-18
    Attachments
    Empty
    References
    Referencing request #10528
    Referenced by request #10528

    Artifact Tracker v5

    rel #10571 9.12

    Follow-ups

    User avatar
    Integrated into Tuleap 9.11.99.16

    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2017-08-18
    User avatar
    Hi,

    I am able to reproduce the issue. A fix is under review, see gerrit #9281.

    Thank you for your input!

    Best regards,
    Nicolas

    • Status changed from New to Under review
    User avatar
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    User avatar
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes