Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
V
views
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
3
Merge Requests
3
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
views
Commits
0a34677d
Commit
0a34677d
authored
Apr 23, 2008
by
merlinofchaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problem grabbing incorrect data from cache
parent
7c3c7c51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
includes/admin.inc
includes/admin.inc
+7
-0
includes/cache.inc
includes/cache.inc
+5
-1
includes/plugins.inc
includes/plugins.inc
+12
-2
No files found.
includes/admin.inc
View file @
0a34677d
...
...
@@ -1619,7 +1619,14 @@ function views_ui_edit_display($js, $view, $display_id, $section) {
if
(
!
empty
(
$form_state
[
'regenerate form'
]))
{
$form_state
[
'input'
]
=
array
();
// Remove the input so it can't post.
$form_state
[
'executed'
]
=
FALSE
;
if
(
!
empty
(
$form_state
[
'next'
]))
{
$form_state
[
'section'
]
=
$form_state
[
'next'
];
}
$object
=
views_ajax_form_wrapper
(
'views_ui_edit_display_form'
,
$form_state
);
if
(
!
empty
(
$form_state
[
'next'
]))
{
$object
->
url
=
url
(
"admin/build/views/ajax/display/
$view->name
/
$display_id
/
$form_state[next]
"
);
}
}
// regenerate all tabs because changes to the default tab could ripple.
return
views_ui_regenerate_tabs
(
$view
,
NULL
,
$object
);
...
...
includes/cache.inc
View file @
0a34677d
...
...
@@ -31,7 +31,11 @@ function _views_fetch_data($table = NULL) {
// NOTE: This happens whether we retrieve them from cache or otherwise.
views_include_handlers
();
$cache
=
views_cache_get
(
'views_data'
);
$data
=
views_cache_get
(
'views_data'
);
if
(
!
empty
(
$data
->
data
))
{
$cache
=
$data
->
data
;
}
if
(
empty
(
$cache
))
{
$cache
=
module_invoke_all
(
'views_data'
);
foreach
(
module_implements
(
'views_data_alter'
)
as
$module
)
{
...
...
includes/plugins.inc
View file @
0a34677d
...
...
@@ -1241,8 +1241,13 @@ class views_plugin_display extends views_plugin {
$row_options
=
array
();
$plugin
->
init
(
$this
->
view
,
$this
->
display
);
$plugin
->
options
(
$row_options
);
// @todo -- change this
$this
->
set_option
(
'row_options'
,
$row_options
);
// send ajax form to options page if we use it.
if
(
!
empty
(
$plugin
->
definition
[
'uses options'
]))
{
$form_state
[
'next'
]
=
'style_options'
;
$form_state
[
'regenerate form'
]
=
TRUE
;
}
}
}
break
;
...
...
@@ -1256,8 +1261,13 @@ class views_plugin_display extends views_plugin {
$style_options
=
array
();
$plugin
->
init
(
$this
->
view
,
$this
->
display
);
$plugin
->
options
(
$style_options
);
// @todo -- change this
$this
->
set_option
(
'style_options'
,
$style_options
);
// send ajax form to options page if we use it.
if
(
!
empty
(
$plugin
->
definition
[
'uses options'
]))
{
$form_state
[
'next'
]
=
'style_options'
;
$form_state
[
'regenerate form'
]
=
TRUE
;
}
}
}
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment