ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Related Entries field problem when no entry selected

February 22, 2011 6:27am

Subscribe [2]
  • #1 / Feb 22, 2011 6:27am

    willm

    30 posts

    When I have an entry that has a related entry field, but no related entry chosen, then it shows the following code in the outputted template:

    {REL[0][related_menu]17DT9TeWREL}

    When there is a related entry, everything works fine, but when n entry is selected then the above code is shown. All I want it to do is show nothing when there is no related entry.

    I’m on v2.1.3 and build Build: 20101220

  • #2 / Feb 22, 2011 4:58pm

    Ingmar

    29245 posts

    Have you considered using the {if no_related_entries} conditional?

  • #3 / Feb 23, 2011 6:52am

    willm

    30 posts

    No that or anything else hasn’t worked. I just tried deleting the field so I could create it again but I get this error when attempting to delete:

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined property: Rel_ft::$db

    Filename: fieldtypes/ft.rel.php

    Line Number: 202

    I’m using MSM as well

  • #4 / Feb 23, 2011 6:58am

    Ingmar

    29245 posts

    This is a known bug, actually. It should have been fixed in the upcoming 2.1.4.

  • #5 / Feb 23, 2011 7:19am

    willm

    30 posts

    Thanks Ingmar, will check again when the new update is released

  • #6 / Feb 23, 2011 12:56pm

    Barry Cogan

    291 posts

    Hi Will,

    Please post again with any future issues.

    Bes regards,
    Barry

  • #7 / Feb 23, 2011 12:56pm

    Barry Cogan

    291 posts

    resolved

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases