1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Fix issue processwire/processwire-issues#315 - remove some extra code that's no longer necessary for image fields in a PageTable

This commit is contained in:
Ryan Cramer
2017-07-14 10:15:31 -04:00
parent bf351573b0
commit 0fe94521fe

View File

@@ -381,14 +381,7 @@ class InputfieldPageTable extends Inputfield {
/** @var Field $field */ /** @var Field $field */
$field = $fields[$column]; $field = $fields[$column];
$v = $item->getFormatted($fieldName); $v = $item->getFormatted($fieldName);
if($field->type instanceof FieldtypeImage) {
$field->inputfieldSetting('renderValueFlags', Inputfield::renderValueMinimal | Inputfield::renderValueNoWrap);
$value = (string) $field->type->markupValue($item, $field, $v, $subfieldName); $value = (string) $field->type->markupValue($item, $field, $v, $subfieldName);
$value = "<div class='Inputfield InputfieldImage InputfieldRenderValueMode'>$value</div>";
$field->inputfieldSetting('renderValueFlags', 'clear');
} else {
$value = $field->type->markupValue($item, $field, $v, $subfieldName);
}
} else { } else {
// native // native