Report Panel DynamicLogic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1557

    #1

    Report Panel DynamicLogic

    Hi Yuri,
    it's not scope but...but just let you know.

    on demo.espocrm.com : No issue

    on my instance + production : when i add dynamicLogic to a reportPanel => save error.

    So i have look :

    line +- 244 : /custom/Espo/Modules/Advanced/Tools/ReportPanel/Service.php. if i add (object) .. no issue.

    original : $clientDefs->dynamicLogic->panels->$name = $item;
    modified : $clientDefs->dynamicLogic->panels->$name = (object) $item;

    AdvancedPack : 3.5.4​
    php version : 8.2.24 and 8.3.x
    os : macos + debian

    Regards
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9644

    #2
    Hi,

    I'll look into. Thanks for reporting.

    Comment

    • yuri
      EspoCRM product developer
      • Mar 2014
      • 9644

      #3
      I could not reproduce. Could you share the corresponding error from the log? What exactly dynamic logic you added?

      Comment

      • item
        Active Community Member
        • Mar 2017
        • 1557

        #4
        Hi Yuri,
        find it :
        in the clientDefs : entity.json :
        i don't know how he come there but "panels": [] .... so i have changed to "panels" = {} and the worked.
        And of course with : $clientDefs->dynamicLogic->panels->$name = (object) $item;
        Ha just info, i have 2 report panel

        PHP Code:
            "dynamicLogic": {
                
        "panels": []    // Bad [] ?  => {} 
        it's certainly my fault.. please delete post if you will and sorry ... because no issue in demo.espocrm.com.

        Thanks.
        Last edited by item; 11-23-2024, 11:31 PM.
        If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

        Comment

        Working...