Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20944

Error in admin interface, hide/unhide from advanced menu causes error.

    Details

      Description

      Hi, I don't know if this is related to http://share.ez.no/forums/general/problem-with-admin-redirections

      But I am using the latest ez publish, 2013.5, and I see that there's a similar problem in admin interface when trying to hide/unhide nodes using the context menu (advanced) in the left tree menu. To reproduce you need just try to hide/unhide the same node a couple of times.

      Error message is:

      {"error_code":0,"node_id":"114","children_count":6,"children":[

      {"node_id":189,"object_id":189,"class_id":21,"has_children":false,"name":"Frontpage blokk 1","url":"\/siteadmin\/areopagos\/toppmeny-1\/block-frontpage-blokk-1","modified_subnode":1369384379,"languages":["nor-NO"],"is_hidden":false,"is_invisible":false}

      ,

      {"node_id":140,"object_id":140,"class_id":27,"has_children":false,"name":"Gallery","url":"\/siteadmin\/areopagos\/toppmeny-1\/Gallery","modified_subnode":1369384379,"languages":["nor-NO"],"is_hidden":false,"is_invisible":false}

      ,

      {"node_id":115,"object_id":115,"class_id":1,"has_children":true,"name":"Sidemeny 1","url":"\/siteadmin\/areopagos\/toppmeny-1\/Sidemeny-1","modified_subnode":1369384379,"languages":["nor-NO"],"is_hidden":false,"is_invisible":false}

      ,

      {"node_id":119,"object_id":119,"class_id":1,"has_children":false,"name":"Sidemeny 2","url":"\/siteadmin\/areopagos\/toppmeny-1\/Sidemeny-2","modified_subnode":1369391068,"languages":["nor-NO"],"is_hidden":false,"is_invisible":false}

      ,

      {"node_id":120,"object_id":120,"class_id":1,"has_children":false,"name":"Sidemeny 3","url":"\/siteadmin\/areopagos\/toppmeny-1\/Sidemeny-3","modified_subnode":1369384379,"languages":["nor-NO"],"is_hidden":false,"is_invisible":false}

      ,

      {"node_id":121,"object_id":121,"class_id":1,"has_children":false,"name":"Sidemeny 4","url":"\/siteadmin\/areopagos\/toppmeny-1\/Sidemeny-4","modified_subnode":1369384379,"languages":["nor-NO"],"is_hidden":false,"is_invisible":false}

      ]}

        Activity

        Hide
        Thiago Campos Viana added a comment -

        Workaround:

        kernel/content/module.php

        Change $ViewList['hide'] to:

        $ViewList['hide'] = array(
        'functions' => array( 'hide' ),
        'ui_context' => 'ajax',
        'default_navigation_part' => 'ezcontentnavigationpart',
        'script' => 'hide.php',
        'params' => array( 'NodeID' ) );

        kernel/private/classes/ezpkernelweb.php

        Change:

        !in_array( $uiContextName, array( 'edit', 'administration', 'browse', 'authentication' ) ) )

        To:

        !in_array( $uiContextName, array( 'edit', 'administration', 'browse', 'authentication', 'ajax' ) ) )

        Show
        Thiago Campos Viana added a comment - Workaround: kernel/content/module.php Change $ViewList ['hide'] to: $ViewList ['hide'] = array( 'functions' => array( 'hide' ), 'ui_context' => 'ajax', 'default_navigation_part' => 'ezcontentnavigationpart', 'script' => 'hide.php', 'params' => array( 'NodeID' ) ); kernel/private/classes/ezpkernelweb.php Change: !in_array( $uiContextName, array( 'edit', 'administration', 'browse', 'authentication' ) ) ) To: !in_array( $uiContextName, array( 'edit', 'administration', 'browse', 'authentication', 'ajax' ) ) )

          People

          • Assignee:
            Unassigned
            Reporter:
            Thiago Campos Viana
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: