mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4030 from dhensby/pulls/debug-viewable-data
FIX Debug::text no longer incorrecty returns "ViewableData_debugger"
This commit is contained in:
commit
2d4a3edd6c
@ -125,7 +125,12 @@ class Debug {
|
||||
}
|
||||
|
||||
if($hasDebugMethod) {
|
||||
return $val->debug();
|
||||
$debug = $val->debug();
|
||||
// Conditional not necessary after 3.2. See https://github.com/silverstripe/silverstripe-framework/pull/4034
|
||||
if ($debug instanceof ViewableData_Debugger) {
|
||||
$debug = $debug->forTemplate();
|
||||
}
|
||||
return $debug;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user