Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hello,
because of an error-message I got, I looked into the module-code and found following line in the function _get_aliasable_displays() :
$sql = "SELECT DISTINCT(vv.name) FROM drupal_views_view vv JOIN drupal_views_display vd ";
the table prefix 'drupal_' is hardcoded into the module code. This really shouldn't be so.
Some people (like me) don't use table prefixes at all, other will use different prefixes.
Would be great if you could correct this, not just for me, cause i modified the source, but for all others.
Comments
Comment #1
Methos76 CreditAttribution: Methos76 commentedComment #2
emackn CreditAttribution: emackn commentedbeta2 will have this fix in it. I set the release up, but it might not get rolled for a couple of hours.
Thanks for picking that up.
Comment #3
emackn CreditAttribution: emackn commentedComment #4
emackn CreditAttribution: emackn commentedassigning to me
Comment #6
catofcheshir CreditAttribution: catofcheshir commentedIt's not fixed for beta7 :( Have to remove prefix manually.
Comment #7
emackn CreditAttribution: emackn commentedhow did this get back in there? ;) Thanks for catching it. I'll have a new release out later today.
Comment #8
emackn CreditAttribution: emackn commentedfixed with beta8
Comment #9
aroq CreditAttribution: aroq commentedSeems still not fixed in beta 8 line 123:
$sql = "SELECT DISTINCT(vv.name) FROM {views_view} vv JOIN drupal_views_display vd ";
Comment #10
emackn CreditAttribution: emackn commentedFunny how you can look right at something and not see it. Fixed in beta9.
Comment #12
vbilici CreditAttribution: vbilici commentedsame problem on line 175 with 6.x 2.0