Currently we use arg(1), but this means when editing the view you see a UID of 'build' instead of '3' for example.

Comments

xurizaemon’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new1.52 KB
new1.73 KB

Was working on 6.x-3.x when I spotted this so 7.x-3.x is untested currently but should be identical.

xurizaemon’s picture

Status: Needs review » Needs work

D7 uses arrays for user_load() so the second patch above won't work.

dddave’s picture

Version: 7.x-3.x-dev » 7.x-6.x-dev

still relevant?

Yorgg’s picture

Yes.
I need the contextual filter UID to be %

xurizaemon’s picture

Title: Restore Views UID validator, use $argument rather than arg(1) » Restore Views UID validatory, use $argument rather than arg(1)

The code this issue was originally reported against is not in 7.x-6.x, it's been removed entirely in 13fa2451 as part of
#1847406: Move account listing to the module settings, the concept being that "removing the relationship between a Drupal user and the Twitter accounts would simplify the module and the user experience".

But the uid mapping was restored, because it's essential to some uses of the module (ie a forum with per-user Twitter integration).

Decision AFAIK was not to remove the user relationship entirely but to make it optional. Looks like the views filter was forgotten in that, and will need to be restored to be fixed :)

xurizaemon’s picture

Title: Use $argument rather than arg(1) in views uid validator » Restore Views UID validator, use $argument rather than arg(1)

-

damienmckenna’s picture

Issue summary: View changes
Status: Needs work » Needs review

The last submitted patch, 1: twitter-1707098-use_argument_not_arg-6.x-3.x.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 1: twitter-1707098-use_argument_not_arg-7.x-3.x.patch, failed testing.