Announcement

Collapse
No announcement yet.

Report Panel DynamicLogic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    Hi,

    I'll look into. Thanks for reporting.

    Comment


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

      Comment


      • #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; Yesterday, 11:31 PM.

        Comment

        Working...
        X