I'd like to see revision support added to this module, the editablefields module doesn't quite work with multiple fields.

CommentFileSizeAuthor
#10 Editable views config.jpg97.81 KBkingdee40
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

> I'd like to see revision support added to this module

> the editablefields module doesn't quite work with multiple fields.

Are these two things related? Please read the guidelines for posting issues!

In what way would you like revision support?

kerberos’s picture

[comment retracted, wrong module :)]

-Daniel
Jocuri Android RO

PatchRanger’s picture

Keep in mind that fixing this issue is going to be rewarded by not less than $90: see "90$ bounty for fixing issue of Editable Views module" for reference.

joachim’s picture

> In what way would you like revision support?

The OP has not yet explained how revisions would be supported.

kingdee40’s picture

So right now you create a view with fields that are editable, when you make any changes to those fields the changes are instantly seen. I need any changes to go thought an approval flow, so when anyone makes changes to fields in the view they are not instantly seen and have to be approved by an admin first. Supporting revisions and the Revisioning module the way editiblefields does would solve this problem.

joachim’s picture

Best way to tackle this might be to add an editable views handler for the 'create new revision' checkbox.

Otherwise, forcing a new revision across the board would require a setting at the level of the whole editable view, which would be fiddly.

Of course, you could do this in code with a form alter, as explained in the docs.

PatchRanger’s picture

Status: Active » Closed (works as designed)

So it appears that there is no need in any patch.
To achieve your goal you should just enable node revisioning for all nodes of a concrete content type as described in Node revisions article and then follow the instructions from Revisioning module tutorial.
Closing as working as designed.

kingdee40’s picture

Status: Closed (works as designed) » Active

Why was this closed? Revisions are not created when editing fields attached to nodes with this module.

criznach’s picture

Status: Active » Closed (works as designed)

I just did some testing on a site I have locally, and when set up properly, editable views does create revisions. You'll need to set your content type's "Create new revision" checkbox and save if you want new nodes to be revisioned. If you have existing nodes where "Create new revision" was not checked, editable views will not trigger new revisions until you check "Create new revision" on the node, and re-save. Once you've done that, editable views will trigger new revisions for each field edit. I didn't test as far as the revisioning and workflow modules, but in theory they should work, because the node's revision flag is indeed saved using the standard mechanism.

If this isn't exactly the workflow you want, I suggest you describe the workflow you want in more detail, either in the issue summary, or the paid services forum. As it's currently written, your issue should be closed.

kingdee40’s picture

Status: Closed (works as designed) » Active
FileSize
97.81 KB

Yes, I have verified that "Create new revision" is checked on both the Article content type and also on the individual node. No revisions are created, I am testing this on a clean install with editable views module and drupal's core revision system. I am attaching a screenshot of my views config. Please let me know more detail about your config so we can figure this out.

joachim’s picture

(Aside: you're using this to edit a single node at a time? It would be much simpler to just write your own form for that!)

criznach’s picture

On second thought, I may be mistaken about revisioning working. I saw your reference to editablefields, and that's what my site uses. I see now that the issue is on "editable views", and am no longer confused. :)

I seem to remember something about multiple fields not working in editablefields, but it's working great for me. Maybe give editablefields a shot.

donSchoe’s picture

Issue summary: View changes

This module is creating new revisions if you set up your site correctly to do so.

I'd say this "works as desired". (Working for me out of the box with user revisions enabled.)

milossramek’s picture

Hi,
the Editable views module does not create for me a new revision upon save, it only updates the revision time.

A new revision is, however, created when editing a node in the normal way.

he "Create new revision" and "Enable moderation of revisions" options in "Publishing options" of admin/structure/types/manage/nodetype are checked.
I do not see such option in the individual nodes, as mentioned in #10

The revisioning module is mentioned above n this discussion - I do not use it.

My configuration:

Drupal 7.44
Editable Views: Version: 7.x-1.0-beta10
Views: Version: 7.x-3.14

Is there something wrong with my configuration?
thanks in advance

christok’s picture

There's nothing wrong with your configuration. However, it turns out that you can mod editable views to save revisions by adding one line of code to editableviews.module:

  1. Locate the editableviews_entity_save function in the file
  2. Add the following line before the line reading "entity_save($entity_type, $entity);":

    $entity->revision = TRUE;

Now obviously this should be done as an actual patch and then value of the entity revision setting should come from the content type's but this hack will get you moving forward if you need a quick and dirty universal solution.

milossramek’s picture

Thank you for your help, it works!
Milos