Jump to:

7912 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: 37695 Views
  • Johnny
    Avatar
    Community Member
    34 Posts

    Re: Bug Reports Link to this post

    Hi!

    There's a bug using DataObjectManager. Drag and drop reordering is broken. After clicking "Allow drag and drop reordering" checkbox, then I try to move lines around, and instead, the line is growing.

    Reproduced with FF 3.6.3, Safari 4.0.5 and IE7.
    I have SS 2.3.4 installed.

    Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Are you running the 2.3 branch?

  • danzzz
    Avatar
    Community Member
    175 Posts

    Re: Bug Reports Link to this post

    hi

    I'm playing arround with SS 2.4 + dataobjectmanager.

    I dont know if it's a bug ...

    500//ERROR [User Error]: Uncaught Exception: Object->__call(): the method 'setbuttonaddtitle' does not exist on 'FileDataObjectManager'

    or just the documentation is depraced?

    setButtonAddTitle($title) The text that will appear on the Add button of the FileDataObjectManager. Defaults to PluralTitle.

    ... writes here:
    http://doc.silverstripe.org/modules:dataobjectmanager

    daniel

  • danzzz
    Avatar
    Community Member
    175 Posts

    Re: Bug Reports Link to this post

    hi

    I miss the "confirm" dialog on deleting images in grid view ...
    The "confirm" dialog is there if I delete images in list view.

    In firebug I see that in grid view there is no "rel" tag ...

    See attached screenshot:

    http://s1.directupload.net/images/100516/hdrl43jm.jpg

    daniel

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Yeah, it's a CSS issue, actually. I'm aware of the shortcoming, just haven't found a solution yet.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Try setAddTitle() .. the docs appear to be wrong. Sorry about that.

  • silverstriper
    Avatar
    Community Member
    8 Posts

    Re: Bug Reports Link to this post

    Update: This is now resolved, see my post here for how I fixed it!

    http://www.silverstripe.org/dataobjectmanager-module-forum/show/283814#post284561

    I am also experiencing the same problem with SimpleTreeDropdownField that joshy has detailed a few posts back.

    My post detailing the problem and example code is here:

    http://www.silverstripe.org/dataobjectmanager-module-forum/show/283814#post283814

    Browser: Firefox 3.6.3 / Mac OS 10.6.3

  • Mat Weir
    Avatar
    Community Member
    33 Posts

    Re: Bug Reports Link to this post

    Hi UncleCheese,

    I think I've found a bug as this code works for HasManyComplexTableField but not with HasManyDataObjectManager.

    I'm using SS 2.4 and dataobject_manager trunk.

    Code is:

    class Ride extends Page {
       
       static $has_many = array(
          'Legs' => 'Leg'
       );
       
       function getCMSFields() {
          $fields = parent::getCMSFields();
          
          $fields->addFieldToTab("Root.Content.Legs",
             new HasManyDataObjectManager($this, 'Legs', 'Leg')
          );
          return $fields;
       }

    class Leg extends DataObject {
       
       static $db = array(
          'Description' => 'Text',
          'Length' => 'Float'
       );
       
       static $has_one = array(
          'Ride' => 'Ride',
          'StartTown' => 'Town',
          'EndTown' => 'Town'
       );
       
       static $summary_fields = array(
          'StartTown.Title', 'EndTown.Title', 'Length', 'Description'
       );

    Seems to be ok in DOM if I remove $summary_fields.

    Thanks!

    [edit]
    Error message is:

    [Warning] strpos() expects parameter 1 to be string, array given
    GET /mysite/admin/

    Line 267 in /home/matweir/Workspace/mysite/sapphire/core/ViewableData.php
    [/edit]

    37695 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.