now the save content action (in the content view) isn't working with the auto save form. maybe we can make a good use of it.
if you write something in the content form then did the save content action it saves it after it was just a draft.

to reproduce this, Edit any content without saving it (it should be drafted now).

now leave the node form page and go to /admin/content to see the content view.

select one that content that you have just edited and apply an action on it that is called "Save content".

I'm thinking like it would be awesome to save the drafted content if we applied this action on it since this action is really doing
nothing (see the related issue (3077464)).

Comments

midobel created an issue. See original summary.

hchonov’s picture

Could you please provide steps to reproduce, because I am not really familiar with the action you are talking about. It looks like you're not on the entity form and actually there should be no problems. But I am going to try to reproduce it when you provide the necessary steps.

ahmed-ayman’s picture

Issue summary: View changes
hchonov’s picture

I still don't understand what exactly does not work?

What is the expected behavior and what do you observe? Any errors?

ahmed-ayman’s picture

No errors are there,
It's just a feature request.. simply I think it's a good idea to apply the action save content on the drafted content to save it. Now that action isn't doing anything.
Maybe if it wasn't clear yet I will record a video clarifying this.

hchonov’s picture

Autosave does not prevent you from saving. What this action is doing is to update the changed timestamp. Could you observe the changed timestamp in the database and tell me if it gets updated?

However if you don't have the conflict module installed, then the drafts will be purged when the entity is saved through this action.

hchonov’s picture

Or what you are asking for is to save the draft changes when you execute the "Save action" action? If so, then this is something we are not going to do. You need to let the form widgets process the autosave values before saving them and for that you have to load the form.