There are some problems with vbo and simple access.
1. After create a view with vbo the Form doesn’t show group names only checkboxes. Because there is an invalid attribute ‘#value’ in function simple_access_group_grant_form() use ‘#markup’ instead . Please see attached patch below.
2. After select a vbo action like ‘Grant permissions to groups’ php throw a notice like Undefined index: sa_group_permissions in simple_access_group_grant_form() because var $setting is not set correctly. Please see attached patch too.
After fix theses minor errors, I can do an action on nodes with simple access/vbo but the action has no effect. Message of simple action is: Performed Grant permissions to groups on 1234 … but rights are still the same before.
My php version is 5.4.15
What can I do?
Comment | File | Size | Author |
---|---|---|---|
#4 | 0001-Issue-2039471-by-Alexander-Hadj-.-Fixed-Problems-wit.patch | 12.95 KB | gordon |
#2 | vbo_form_errors-1-2.patch | 2.05 KB | Alexander Hadj Hassine |
vbo_form_errors-1-1.patch | 2.63 KB | Alexander Hadj Hassine |
Comments
Comment #1
gordon CreditAttribution: gordon commentedThis doesn't follow Drupal Coding standards
The better way to do this add the defaults to the array something like
Comment #2
Alexander Hadj Hassine CreditAttribution: Alexander Hadj Hassine commentedThanks for your answer,
I have add the defaults to an array, please see attached patch below.
But main problem is still alive. After do action rights are still the same before. No changes are made.
Comment #3
thalemn CreditAttribution: thalemn commentedI can concur that simple access changes are not applied using VBO to group permissions using Drupal 6 and VBO (I know this should probably be in the Drupal 6 version, but wanted to post it here, too).
Comment #4
gordon CreditAttribution: gordon commentedI have taken a look at this patch, and the actions we not working at all.
I have looked into it more and here is the fixes. Can you please check these.
Comment #5
gordon CreditAttribution: gordon commentedComment #6
gordon CreditAttribution: gordon commentedComment #7
gordon CreditAttribution: gordon commentedThis has been committed to dev
Comment #10
earthangelconsulting CreditAttribution: earthangelconsulting commentedi can't figure out how to use vbo to update "simple access" configuration for nodes, or if that's even possible. is there any kind of documentation on how to do this?