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

admin history page, 'object information' tab, show wrong data

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.3.0beta1
    • None
    • None
    • Operating System:
      PHP Version: 5
      Database and version: Mysql
      Browser (and version): N/A

    Description

      At least in my version (ezp 4.0.3). The 'created' paragraph shows the current.creator, and the Modified paragraph show the content_class.modifier.

      From design/admin/templates/content/history:

      {* Created *}
      <p>
      <label>{'Created'|i18n( 'design/admin/content/history' )}:</label>
      {section show=$object.published}
      {$object.published|l10n( shortdatetime )}<br />
      {$object.current.creator.name|wash}
      {section-else}
      {'Not yet published'|i18n( 'design/admin/content/history' )}
      {/section}
      </p>
      
      {* Modified *}
      <p>
      <label>{'Modified'|i18n( 'design/admin/content/history' )}:</label>
      {section show=$object.modified}
      {$object.modified|l10n( shortdatetime )}<br />
      {fetch( content, object, hash( object_id, $object.content_class.modifier_id ) ).name|wash}
      {section-else}
      {'Not yet published'|i18n( 'design/admin/content/history' )}
      {/section}
      </p>
      
      Steps to reproduce

      in the admin, select a node, click edit, click history.

      Attachments

        Activity

          People

            cpg cpg
            pike pike
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: