Skip to content

Commit

Permalink
Merge pull request #49 from netgen/48-alt-text-fix
Browse files Browse the repository at this point in the history
Fixes #48 alt text fix
  • Loading branch information
iherak authored Feb 28, 2019
2 parents 68684ba + cf4d59a commit b39038d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ public function fetchObjectAttributeHTTPInput( $http, $base, $contentObjectAttri
}

if ($updatedValue->metaData['alt_text'] != $data['alttext']) {
$provider->updateResourceContext($updatedValue->resourceId, $value->metaData['resource_type'], $data['alttext']);
$provider->updateResourceContext(
$updatedValue->resourceId,
$value->metaData['resource_type'],
[
'alt' => $data['alttext']
]
);
$updatedValue->metaData['alt_text'] = $data['alttext'];
}

Expand Down

0 comments on commit b39038d

Please sign in to comment.