Weird behavior with filters in users datatable #414
-
users_processing_row - first and second argument are the same, instead of second one being the user row? datatable_user_class - adding any function to this filters breaks the user row argument which returns in all rows being blocked, since private function get_row_status($user)
{
if ($user['b_enabled'] == 0) {
return array(
'class' => 'status-blocked',
'text' => __('Blocked')
);
}
... Any ideas what might be happening? This is with Osclass 5.0.2. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Test this on 5.1 it'll work. |
Beta Was this translation helpful? Give feedback.
-
Hi! Have the same issue with 2 plugins handling the same hook filter 'users_processing_row' In called method : Simply comment the line solve my problem, but may cause unexpected behavior in other place (?) Thanks for your attention and the great job :) Nicolas |
Beta Was this translation helpful? Give feedback.
Test this on 5.1 it'll work.