I am trying to use autosave on a content type that has multiple fields but it only seems to be autosaving the Title and Body fields. The rest do not get saved. Also when I view the autosaved version I then get 3 buttons that all say "Save,Preview,Delete,Save, Preview,Delete,Save,Preview,Delete". Anyone know what is happening?

CommentFileSizeAuthor
#1 autosave.patch12.75 KBjody lynn

Comments

jody lynn’s picture

StatusFileSize
new12.75 KB

When jquery.field.js was updated for the D6 branch the customizations which were in it in the D5 branch never made the jump. I found custom bits in the D5 js related to submit buttons and to the use of square brackets in field names. I added these bits into the D6 js ($.fn.formHash) and it solved both issues: the cck fields now work and the submit buttons aren't mangled.

jody lynn’s picture

Status: Active » Needs review
Drupalone’s picture

Title: Only working on Title and Body fields? » Doesn't work for me

I still get the Problem after installing your patch.

The Main Text is not getting restored, when tinyMCE is activated after clicking on "View" in the autosave popup.

But each time i click view or restore, the text from the "save | delete | preview" Buttons is put together in each of the buttons, and each time I click, the Text in the buttons grows.

I hope we cann fix that, cause this is such a beautiful feature.

Avatar’s picture

How to install a patch?? I know nothing about coding

pasqualle’s picture

Title: Doesn't work for me » Only working on Title and Body fields?

fixing the issue title..

benone’s picture

Hey did you do something with autosaving CCK fields ?
I can only autosave the Title which is the only one orgiginal Drupal field in my content type.

Subscribing to this topic.

Ben

jody lynn’s picture

Priority: Normal » Critical
liquidcms’s picture

Status: Needs review » Closed (won't fix)

this works fine in 2-x branch.