merge-update from trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / name / AuthorshipDetailSection.java
index 66c071ced89a6194752dcd6949672531c606bbdd..44aa277454c44f4cf9c4a43b6ab2543971fa4ad6 100644 (file)
@@ -56,7 +56,12 @@ public class AuthorshipDetailSection extends AbstractCdmDetailSection<NonViralNa
        @Override
        protected void setSectionTitle() {
                if(getEntity() != null){
-                       this.setText(getHeading() + ": " + getEntity().getAuthorshipCache());
+                       String title = getHeading() + ": " + getEntity().getAuthorshipCache();
+               // we have to duplicate ampersands otherwise they are treated as
+               // mnenomic (see Label.setText() documentation)
+            // see also #4302
+               title = title.replace("&", "&&");
+            this.setText(title);
                }
        }