Jump to:

7913 Posts in 1355 Topics by 930 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Bug Reports

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Go to End
Author Topic: 37724 Views
  • JoelMurdoch
    Avatar
    Community Member
    16 Posts

    Re: Bug Reports Link to this post

    Solved

  • ragunalth
    Avatar
    Community Member
    14 Posts

    Re: Bug Reports Link to this post

    Hi

    I have a website with multi languages. (English, Portuguese, Chinese)

    When I want to "insert a link" to my content on Portuguese/Chinese it only shows the default language links in the drop down tree, in this case English, in the past it used to list the pages from the current language.

    I need to know if this is a bug or if there is a setting to fix this.

    Thanks in advance.

  • dvdsetshop
    Avatar
    Community Member
    8 Posts

    Re: Bug Reports Link to this post

    You need to get me a more verbose error. A blank alert box and a generic 500 error is not enough to go on.

    ---------------------------------------------------------------------------------------------------------------
    Lost is so great.

  • Mat Weir
    Avatar
    Community Member
    33 Posts

    Re: Bug Reports Link to this post

    Hi UncleCheese,

    I am using ImageDataObjectManager from trunk with SS 2.4. I have a Photo object that extends Image.

    The manager is defined in Category.php as:

    $manager = new ImageDataObjectManager(
    $this,
    'Photos',
    'Photo',
    null,
    array('Title' => 'Title', 'Description' => 'Description', 'DateTaken' => 'DateTaken'),
    'getCMSFields_forPopup');

    I have a problem where OwnerID isn't being set on the File object. It seems that Member::currentUserID() is returning 0 in line 623 of FileDataObjectManager.php. This is strange, because of echo Member::currentUserID() from the CategoryController, it returns 1.

    Have you experienced this problem with the latest versions?

    Cheers,

    Mat Weir

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    ImageDOM manages DataObjects that contain images. Not images or subclasses thereof. Try ImageAssetManager.

  • Mat Weir
    Avatar
    Community Member
    33 Posts

    Re: Bug Reports Link to this post

    Thanks UncleCheese but I have the same problem with ImageAssetManager:

    $manager = new ImageAssetManager(
       $this,
       'Photos',
       'Photo',
       array('Title' => 'Title', 'Description' => 'Description', 'DateTaken' => 'DateTaken')
    );


    OwnerID is set to 0 even though I'm logged in.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Does your Image subclass have a has_one relation to the page?

  • Mat Weir
    Avatar
    Community Member
    33 Posts

    Re: Bug Reports Link to this post

    Yes, and everything is working except OwnerID being set in the File table. Images are uploading and showing correctly related to the page.

    37724 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.