Hello, thank you for this module, but I found that changing a column name in a module's table does not reflect in the Views UI interface when selecting fields for building a view's criteria.

This should reproduce the issue. First install publication date, https://drupal.org/project/publication_date then create a view using the publication date's published_at field, then change the column name published_at to another name, e.g. date_published. Now when you go to views the same name shows under node fields, published_at.

Step taken to reproduce

cd /var/www/sites/all/modules
drush dl publication_date
( export pattern="published_at"; export replacement="date_published"; for i in `find . -type f -print`; do if 2>1 &>/dev/null grep ${pattern} $i; then sed -i s/${pattern}/${replacement}/g ${i}; echo ${i} had "${pattern}" replaced with "${replacement}"; fi; done )
drush en publication_date

I was originally thinking that it was something in the publication date module. So I had put in an issue there https://drupal.org/node/2213827. I have also uninstalled publication date and view ui then installed view ui and then publication date.

I also see that in the export code the correct table column seem to be used. So it seem to be just the label that does not update:

/* Sort criterion: Node: Published at */
$handler->display->display_options['sorts']['date_published']['id'] = 'date_published';
$handler->display->display_options['sorts']['date_published']['table'] = 'publication_date';
$handler->display->display_options['sorts']['date_published']['field'] = 'date_published';

How can I get the field label to take on the new name? Please, thank you!

Comments

MustangGB’s picture

Status: Active » Closed (outdated)

Closing this as outdated, feel free to re-open with updated details if it's still a problem in the latest release.