Skip to content

Commit

Permalink
Fixed compatibility with module Value Suggest (fix #3).
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Dec 13, 2021
1 parent 3b3dd40 commit ffb977c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function prepareResourceForm(Event $event)
$view->headScript()->appendFile($assetUrl('js/wikidata.js', 'Wikidata'));
$view->headScript()->appendScript(sprintf(
'var wikidataProxyUrl = "%s";',
$view->escapeJs($view->url('admin/value-suggest/proxy'))
$view->escapeJs($view->url('admin/wikidata/proxy'))
));
}
}
4 changes: 2 additions & 2 deletions config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
'routes' => [
'admin' => [
'child_routes' => [
'value-suggest' => [
'wikidata' => [
'type' => 'Literal',
'options' => [
'route' => '/value-suggest',
'route' => '/wikidata-suggest',
'defaults' => [
'__NAMESPACE__' => 'Wikidata\Controller',
'controller' => 'Index',
Expand Down
2 changes: 1 addition & 1 deletion src/DataType/AbstractDataType.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function form(PhpRenderer $view)

$rdfLabel = $this->getLabel();

return $view->partial('common/data-type/suggested', [
return $view->partial('common/data-type/wikidata-suggested', [
'labelInput' => $labelInput,
'idInput' => $idInput,
'valueInput' => $valueInput,
Expand Down
File renamed without changes.

0 comments on commit ffb977c

Please sign in to comment.