1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00

Fix issue processwire/processwire-issues#415 where ProcessPageEditImageSelect was not showing variations for image when it was specified as one of the skipFields in module configuration.

This commit is contained in:
Ryan Cramer
2017-10-31 06:25:24 -04:00
parent 5c09f03e8b
commit 7bf27cc5e5
2 changed files with 4 additions and 2 deletions

View File

@@ -13,6 +13,7 @@
#select_images a img { #select_images a img {
border: 3px solid #fff; border: 3px solid #fff;
max-width: 100%; max-width: 100%;
height: 130px;
} }
#select_images a:hover img { #select_images a:hover img {

View File

@@ -306,7 +306,7 @@ class ProcessPageEditImageSelect extends Process implements ConfigurableModule {
$numImages = 0; $numImages = 0;
$numImageFields = 0; $numImageFields = 0;
$skipFields = explode(' ', $this->skipFields); $skipFields = $this->wire('input')->urlSegment1 ? array() : explode(' ', $this->skipFields);
if(empty($fields)) { if(empty($fields)) {
if($this->field) { if($this->field) {
@@ -418,7 +418,8 @@ class ProcessPageEditImageSelect extends Process implements ConfigurableModule {
$info = $in->getAdminThumb($image); $info = $in->getAdminThumb($image);
$img = $info['markup']; $img = $info['markup'];
} }
$out .= "\n\t<li><a href='./edit?file={$image->page->id},{$image->basename}&amp;modal=1&amp;id={$this->page->id}&amp;winwidth=$winwidth'>$img</a></li>"; $out .= "\n\t<li><a href='./edit?file={$image->page->id},{$image->basename}" .
"&amp;modal=1&amp;id={$this->page->id}&amp;winwidth=$winwidth'>$img</a></li>";
} }
$class = $this->noThumbs ? "" : " class='thumbs'"; $class = $this->noThumbs ? "" : " class='thumbs'";