I have created a custom View (using Views UI) that provides a table of members for users. With VBO, i want to "Modify entity values (views_bulk_operations_modify_action)". But when i submit this action, i see two notice :

"Notice: Undefined index: #user in user_field_privacy_field_attach_form() (line 100 of */www/sites/all/modules/user_field_privacy/user_field_privacy.module)."

"Notice: Trying to get property of non-object in user_field_privacy_field_attach_form() (line 100 of */www/sites/all/modules/user_field_privacy/user_field_privacy.module)."

For each user_field are allowed to be private, we can see this two notices.
This is not because i try to modify a privacy field.

CommentFileSizeAuthor
#3 view.txt19.81 KBkitkat13
#2 notice-vbo-1535328-2.patch1.57 KBkitkat13

Comments

boobaa’s picture

Status: Active » Postponed (maintainer needs more info)

Could you please upload your exported view definition in a zip file?

kitkat13’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new1.57 KB

Now the patch.

kitkat13’s picture

StatusFileSize
new19.81 KB

my view.txt

It's a simple views with a vbo_field.
I have 5 fields allowed as private.
I want to modify one user_field, for x users, private or not, with my admin account.

(sorry for late)

boobaa’s picture

Status: Active » Fixed

OK, let's commit a bit cleaner solution: if there's no user info available, don't waste time on anything else.

OTOH, it would be great if u_f_p had such a level of Views integration that allowed both displaying the field value's privateness (the state of the field value's private chechbox) and changing that by the means of VBO. Current implementation doesn't allow this (when changing field values by the means of VBO, the fields' privateness doesn't change).

kitkat13’s picture

Nothing more.

Good job.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.