Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Mopolo committed Aug 14, 2018
1 parent 854d85f commit 430365b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Classes/AssetHandler/Html/DataAttributesAssetHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use Throwable;
use Traversable;
use TYPO3\CMS\Extbase\Error\Result;
use TYPO3\CMS\Extbase\Reflection\Exception\PropertyNotAccessibleException;
use TYPO3\CMS\Extbase\Reflection\ObjectAccess;

/**
Expand Down Expand Up @@ -59,7 +60,11 @@ public function getFieldsValuesDataAttributes(FormResult $formResult)
$fieldName = $field->getName();

if (false === $formResult->fieldIsDeactivated($field)) {
$value = ObjectAccess::getProperty($formInstance, $fieldName);
try {
$value = ObjectAccess::getProperty($formInstance, $fieldName);
} catch (PropertyNotAccessibleException $exception) {
continue;
}

try {
$value = $this->formatValue($value);
Expand Down

0 comments on commit 430365b

Please sign in to comment.