Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25041

User and UserGroup do not implement getField method

    Details

      Description

      User and UserGroup do not implement getField method, which in turn means they can not be used with translation and field helper, nor can the ez_field_value and ez_render_field be used directly on User/UserGroup (only on their 'content' property, accessed via magic method).

      As they can be used however with ez_render_name, for example, and considering they do extend abstract 'content' class, it would make sense for them to behave in the same way the Content itself does.

        Activity

        Show
        Ivan Herak added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/1492
        Show
        André Rømcke added a comment - Merged in https://github.com/ezsystems/ezpublish-kernel/commit/fd5279442a00be22708fcfd7df4dd4f110a17d40
        Hide
        Gaetano Giunta added a comment -

        As a side note, it is funny that some of the methods used to implement the twig helpers are typehinted to only accept an interface ( Content\Content ) as input parameter, but then proceed to call a method ( getField ) on the received object which not part of the interface...

        Show
        Gaetano Giunta added a comment - As a side note, it is funny that some of the methods used to implement the twig helpers are typehinted to only accept an interface ( Content\Content ) as input parameter, but then proceed to call a method ( getField ) on the received object which not part of the interface...
        Hide
        Gaetano Giunta added a comment -

        A good candidate for the 2014.11-community branch

        Show
        Gaetano Giunta added a comment - A good candidate for the 2014.11-community branch
        Hide
        Edi Modrić added a comment -

        @Gaetano already present at Netgen maintenanced 2014.12

        Show
        Edi Modrić added a comment - @Gaetano already present at Netgen maintenanced 2014.12
        Hide
        Gaetano Giunta added a comment -

        @edi.modric nice to know.

        Shall we set up a procedure whereby we add a Jira comment to all bugs which get fixed in those community versions? Ideally adding it to the fix-versions field would be the thing to do, but until we wait for sorting things out, it would be helpful to have this info tracked...

        Show
        Gaetano Giunta added a comment - @edi.modric nice to know. Shall we set up a procedure whereby we add a Jira comment to all bugs which get fixed in those community versions? Ideally adding it to the fix-versions field would be the thing to do, but until we wait for sorting things out, it would be helpful to have this info tracked...
        Hide
        Edi Modrić added a comment -

        That would be nice, yes. Every release of 2014.12 up until now had linked to all issues fixed in that particular release, so you can go through them even now

        Otherwise, I can do it over the weekend.

        As for fix versions, do 2014.12 releases need to be added here by eZ to be able to select them?

        Show
        Edi Modrić added a comment - That would be nice, yes. Every release of 2014.12 up until now had linked to all issues fixed in that particular release, so you can go through them even now Otherwise, I can do it over the weekend. As for fix versions, do 2014.12 releases need to be added here by eZ to be able to select them?
        Hide
        Gaetano Giunta added a comment -

        Yes, I think so

        Show
        Gaetano Giunta added a comment - Yes, I think so

          People

          • Assignee:
            Unassigned
            Reporter:
            Ivan Herak
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: