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:
@@ -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 {
|
||||||
|
@@ -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}&modal=1&id={$this->page->id}&winwidth=$winwidth'>$img</a></li>";
|
$out .= "\n\t<li><a href='./edit?file={$image->page->id},{$image->basename}" .
|
||||||
|
"&modal=1&id={$this->page->id}&winwidth=$winwidth'>$img</a></li>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$class = $this->noThumbs ? "" : " class='thumbs'";
|
$class = $this->noThumbs ? "" : " class='thumbs'";
|
||||||
|
Reference in New Issue
Block a user