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

autosave generates errors in the error.log each time a draft is saved

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 5.1
    • 5.0, 2013.4
    • Legacy > Extensions

    Description

      when a draft is modified an ajax call is fired to ezjscore (example of request: /ezjscore/call/ezautosave::savedraftpreview::8114::2::eng-US?ContentType=javascript ) that ends up being handled by eZ Autosave. eZ Autosave saves the draft then generates its preview html by fetching the following template:
      https://github.com/ezsystems/ezautosave/blob/master/design/admin2/templates/content/ajax_preview.tpl#L4

      This template generates an error because on line 4 (highlighted in the link) it tries to get the class_name from a $node variable that is not passed to the template, only the object is.

      I'm about to send a pull request that replaces the $node variable by $object, that fixes the issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xavier cousin xavier cousin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: