Commit fba6a708 authored by KarenS's avatar KarenS

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

parent a77dee4d
......@@ -3,6 +3,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();
......@@ -283,10 +283,10 @@ function content_views_argument_handler($op, &$query, $argtype, $arg = '') {
function _content_views_rebuild_views($update_fields) {
$tables = _views_get_tables();
$result = db_query("SELECT name, query FROM {view_view} ORDER BY name");
$result = db_query("SELECT name FROM {view_view} ORDER BY name");
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']);
// TODO : check for arguments / sorts / filters as well ?
foreach ($view->field as $field) {
......
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