Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 6b0fec3

Browse files
committed
Merge pull request #245 from symfony-cmf/issue_240
Fix link type choice options
2 parents f1d2d01 + 001b392 commit 6b0fec3

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Admin/MenuNodeAdmin.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,14 @@ protected function configureFormFields(FormMapper $formMapper)
5555
$formMapper
5656
->with('form.group_general')
5757
->add('linkType', 'choice_field_mask', array(
58+
'choices' => array(
59+
'route' => 'route',
60+
'uri' => 'uri',
61+
'content' => 'content',
62+
),
5863
'map' => array(
59-
'route' => array('route'),
60-
'uri' => array('uri'),
64+
'route' => array('link'),
65+
'uri' => array('link'),
6166
'content' => array('content', 'doctrine_phpcr_odm_tree'),
6267
),
6368
'empty_value' => 'auto',

Resources/translations/CmfMenuBundle.de.xliff

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@
106106
<source>form.label_link_type</source>
107107
<target>Linktyp</target>
108108
</trans-unit>
109+
<trans-unit id="form.label_link">
110+
<source>form.label_link</source>
111+
<target>Link</target>
112+
</trans-unit>
109113
<trans-unit id="show.label_id">
110114
<source>show.label_id</source>
111115
<target>Id</target>

Resources/translations/CmfMenuBundle.en.xliff

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
<source>form.label_link_type</source>
111111
<target>Link type</target>
112112
</trans-unit>
113+
<trans-unit id="form.label_link">
114+
<source>form.label_link</source>
115+
<target>Link</target>
116+
</trans-unit>
113117
<trans-unit id="form.label_weak">
114118
<source>form.label_weak</source>
115119
<target>Weak association</target>

0 commit comments

Comments
 (0)