Create views, block.
add any field, set it to editable
save
place the block in any inner page.
visit this page.
edit field, save button appears.

after click save, i'm redirected to front page.

why?

Comments

h4rrydog’s picture

Unfortunately, I'm having the same issue.

The Views field that I want to be editable has been assigned the "Editable" formatter. In the Views block on the page, you can click on the "Edit..." button, make changes, and then click out of the edit box. When the box loses focus, it seems to save the data.

However, there is a "Save" button at the very bottom of the view block that simply redirects you to the front page when you click on it.

Incidentally, if I am logged in as User 1, When I click on the "Edit..." button, a new "Save" button appears for that View row. You can click on multiple "Edit" buttons to reveal multiple "Save buttons", one associated with each Edit button / row.

Clicking on this seems to have the desired effect of saving the changes and returning the content display.

However, the "Save" button at the very bottom still seems to do nothing but redirect you to the front page when you click on it.

Weird. Any ideas anyone?

lennyk’s picture

The issue appears to be documented in the code as a "TODO":

function editablefields_form($form, &$form_state, $entity_type, $entity, $field, $instance, $langcode, $display) {
  // TODO: set a #action to a "safe" URL so that forms embedded in Views do not
  // break when the result set displayed in the Views changes.

This bug is a major hangup for me as well.

Alexander Hadj Hassine’s picture

Same problem, can i disable the save button on site bottom anywhere in module code?

IWasBornToWin’s picture

I hid the save button with css, then I inserted a link to a view, which is really a dummy link because provided the user clicks anywhere outside of the field, the field is saved. The dummy link says "save" and assumes they will click there. If the user clicks the link prior to changing anything the link actually works, goes to the view where a message appears telling the user they haven't changed anything yet.

This seems to work descant UNLESS they make a change and hit their enter key, it then redirects to home page and does not save. Not good.

mortona2k’s picture

Anyone in the know have an idea of how to fix this?

auraell’s picture

subscribing

IWasBornToWin’s picture

Is the module maintained?

rbrownell’s picture

Issue summary: View changes

Not sure if anyone tried this but how about enabling AJAX? Yes, it doesn't refresh the current page but it should prevent you from being bumped to the homepage.

omidehghanZD’s picture

i have same problem.
edit field,.after click save button, i'm redirected to front page.

please help me...any idea?

g33kg1rl’s picture

I enabled ajax and it still does the same thing.

delacosta456’s picture

hi
also having the same problem currently..

Let us expect that somebody to help us

thanks

delacosta456’s picture

hi
i am sharing a workaround that help..

Both Dev version of Editable fields and Editable Fields as Links module and change the formatter to editable link .. after any field edited just Un-focus(click with mouse outside) OR hit "Enter" on you keyboard.

Hope it could help