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

ezpagedata categorizes content/action as is_edit even on infocollector validation warnings

    XMLWordPrintable

Details

    Description

      This causes page width to be full size when you get warning.

      Patch:

      Index: stable/1.4/packages/ezwebin_extension/ezextension/ezwebin/autoloads/ezpagedata.php
      ===================================================================
      --- stable/1.4/packages/ezwebin_extension/ezextension/ezwebin/autoloads/ezpagedata.php	(revision 3878)
      +++ stable/1.4/packages/ezwebin_extension/ezextension/ezwebin/autoloads/ezpagedata.php	(working copy)
      @@ -161,11 +161,20 @@
                       $pageData['show_path']           = 'path';
                       $pageData['website_toolbar']     = false;
                       $pageData['node_id']             = $currentNodeId;
      -                $pageData['is_edit']             = ( $uiContext === 'edit' && strpos( $uriString, 'user/edit' ) === false  );
      +                $pageData['is_edit']             = false;
                       $pageData['page_root_depth']     = 0;
                       $pageData['page_depth']          = count( $moduleResult['path'] );
                       $pageData['root_node']           = (int) $contentIni->variable( 'NodeSettings', 'RootNode' );
       
      +                // is_edit if not on user/edit and not on content/action when
      +                // you get info collector warning about missing attributes 
      +                if ( $uiContext === 'edit'
      +                  && strpos( $uriString, 'user/edit' ) === false
      +                  &&  ( !isset( $moduleResult['content_info'] ) || strpos( $uriString, 'content/action' ) === false ) )
      +                {
      +                    $pageData['is_edit'] = true;
      +                }
      +                  
                       if ( isset( $moduleResult['content_info']['viewmode'] ) )
                       {
                           $viewMode = $moduleResult['content_info']['viewmode'];
      
      

      Attachments

        Activity

          People

            andre1 andre1
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: