ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 3 replies, has 2 voices, and was last updated by Mike Kudelya Mike Kudelya 1 year ago.

  • Creator
    Topic
  • #24173
    thinh2010
    thinh2010
    Participant

    Hi,

    I have Timetable Entity. In timetable view detail, I want to display detail about Course and Lesson related to it.
    This is my code

    It will display some basic information and attachment of Course and Lesson in Timetable.

    But the problem is, 2 blocks Attachment is the same, I mean in Course detail, it displays the attachment from Lesson, although I set different entityClass for oro_attachment_widget_attachments.

    Anyone got this problem, and do you have any ideal? Thanks for read.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #24235
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi

    I have tested your case – two oro_widget_render call the same url with different arguments, result i put to subblocks, result is different. Just for debug, print your entityClass and entityId inside twig. Is result different? Could you please tell me, which version of oro you are using ? I’m using 1.10.8

    #24247
    thinh2010
    thinh2010
    Participant

    Hi

    Sorry for late reply.
    This is the my entityClass and entityId:
    Code:

    Result:

    I’m using dev-master version.

    #24250
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi

    I rather had in mind that need to print these variables inside template your route oro_attachment_widget_attachments. Did you try stable version 1.10 instead master? It may contains some errors and preferably use stable releases instead.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.