Skip to content

Commit c386bb5

Browse files
committed
Outputformatting fixes for images in page reference/repeaters for Image Details column.
1 parent d2939a8 commit c386bb5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

TracyDebugger.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TracyDebugger extends WireData implements Module, ConfigurableModule {
3232
'summary' => __('Tracy debugger from Nette with several PW specific custom tools.', __FILE__),
3333
'author' => 'Adrian Jones',
3434
'href' => 'https://processwire.com/talk/topic/12208-tracy-debugger/',
35-
'version' => '4.10.10',
35+
'version' => '4.10.11',
3636
'autoload' => true,
3737
'singular' => true,
3838
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',

panels/RequestInfoPanel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ private function imageDetails($p, $f) {
663663
if(is_object($p->$f) && count($p->$f)) {
664664
// $subpage is referenced page or repeater item
665665
foreach($p->$f as $subpage) {
666+
$subpage_of = $subpage->of();
667+
$subpage->of(false);
666668
foreach($subpage as $field => $item) {
667669
$f = $this->wire('fields')->get($field);
668670
if($item && $f && $f->type instanceof FieldTypeImage) {
@@ -671,6 +673,7 @@ private function imageDetails($p, $f) {
671673
}
672674
}
673675
}
676+
$subpage->of($subpage_of);
674677
}
675678
}
676679
}

0 commit comments

Comments
 (0)