Commit 9ffb85fa authored by KarenS's avatar KarenS

#134812 Fix Unknown column 'query' in 'field list' query: _content_views_rebuild_views

parent ae79f273
......@@ -5,6 +5,7 @@
Bugfix
------
- #134812 Fix Unknown column 'query' in 'field list' query: _content_views_rebuild_views
- curly quotes fixes in German translation
- #130230 - optionwidgets : allow setting back to 'no value' for non required fields
- #130545: Core translation destroyed by German translation
......
......@@ -30,7 +30,7 @@ function content_views_tables() {
function content_views_field_tables($field) {
$field_types = _content_field_types();
$db_info = content_database_info($field);
if (count($db_info['columns'])) {
$table = array();
......@@ -285,11 +285,11 @@ function _content_views_rebuild_views($update_fields) {
$updated_views = array();
views_load_cache();
$tables = _views_get_tables(true);
$result = db_query("SELECT name, query FROM {view_view} ORDER BY name");
$result = db_query("SELECT name FROM {view_view} ORDER BY name");
// TODO : do we have to do that for default views as well ?
while ($row = db_fetch_array($result)) {
// if a query has been stored for the view
if (!empty($row['query'])) {
if (!empty($row['name'])) {
$view = views_get_view($row['name']);
$view_content_fields = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment