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

Commit 3e0f7f4

Browse files
committed
do not return a hardcoded string for new
1 parent 4155c54 commit 3e0f7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Admin/AbstractMenuNodeAdmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,6 @@ public function toString($object)
161161
return $object->getLabel();
162162
}
163163

164-
return $object instanceof Menu ? 'menu' : 'menu item';
164+
return $this->trans('link_add', array(), 'SonataAdminBundle');
165165
}
166166
}

0 commit comments

Comments
 (0)