Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bug in serverside DSField class

    Hi Isomorphic,

    I'm still investigating this issue (using v11.1p_2017-10-11). Please see the testcase in #13 + #14 and put a breakpoint here in serverside DSField:
    Code:
    /*     */   public String getTitle(Locale locale)
    /*     */   {
    /* 296 */     Object title = get("title");
    /* 297 */     if ((title instanceof LocaleMessage)) { [B]// Set breakpoint here[/B]
    /* 298 */       return ((LocaleMessage)title).getMessage(locale);
    /*     */     }
    /* 300 */     return title == null ? null : title.toString();
    /*     */   }
    This is how this look for the ReportsTo field:
    Click image for larger version

Name:	DSField-getTitle.png
Views:	28
Size:	47.7 KB
ID:	249685

    It seems you are comparing title, variable which is an array (see "expressions" in the screenshot) via instanceOf. Most likely you want title[1] here, but I could be wrong.

    Best regards
    Blama

    #2
    Hi Isomorphic,

    please disregard this thread. I had a title-attribute and a title-tag in .ds.xml, making the title an array.

    Best regards
    Blama

    Comment

    Working...
    X