Commit 9f04c0bb authored by merlinofchaos's avatar merlinofchaos

#442982 by killes: Make destroy() method more robust so that views are more readily reused.

parent c5d15b64
......@@ -33,6 +33,9 @@ Views 2.x-dev
o #538530 by elcuco: Views export textareas should be LTR.
o #538204 by dereine: User picture should be sortable.
o #540122 by stella: Attachment displays should attach even if arguments caused the primary display to abort.
o #544098 by joachim: Fix validation quirks with defaulted handlers.
o #485872 by dereine: Make sure views.css is always loaded for all users.
o #442982 by killes: Make destroy() method more robust so that views are more readily reused.
Other changes:
o Implement a post_render hook (for themes too) and cache method.
......
......@@ -1828,15 +1828,10 @@ class views_plugin_display extends views_plugin {
// Validate handlers
foreach (views_object_types() as $type => $info) {
$plural = $info['plural'];
// Skip handlers which are defaulted as there is no point in
// validating them again.
if (!$this->is_defaulted($plural)) {
foreach ($this->get_handlers($type) as $handler) {
$result = $handler->validate();
if (!empty($result) && is_array($result)) {
$errors = array_merge($errors, $result);
}
foreach ($this->get_handlers($type) as $handler) {
$result = $handler->validate();
if (!empty($result) && is_array($result)) {
$errors = array_merge($errors, $result);
}
}
}
......
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