mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 08:17:12 +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 {
|
||||
border: 3px solid #fff;
|
||||
max-width: 100%;
|
||||
height: 130px;
|
||||
}
|
||||
|
||||
#select_images a:hover img {
|
||||
|
@@ -306,7 +306,7 @@ class ProcessPageEditImageSelect extends Process implements ConfigurableModule {
|
||||
|
||||
$numImages = 0;
|
||||
$numImageFields = 0;
|
||||
$skipFields = explode(' ', $this->skipFields);
|
||||
$skipFields = $this->wire('input')->urlSegment1 ? array() : explode(' ', $this->skipFields);
|
||||
|
||||
if(empty($fields)) {
|
||||
if($this->field) {
|
||||
@@ -418,7 +418,8 @@ class ProcessPageEditImageSelect extends Process implements ConfigurableModule {
|
||||
$info = $in->getAdminThumb($image);
|
||||
$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'";
|
||||
|
Reference in New Issue
Block a user