Jump to:

22996 Posts in 11844 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Duplicate Group 'Codes'

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 593 Views
  • dizzystuff
    Avatar
    Community Member
    93 Posts

    Duplicate Group 'Codes' Link to this post

    I have a handful of groups with a large number of subgroups. Many of the subgroups share a name/title with subgroups under other parents. Upon entry each group gets a 'Code' based on it's title so I now have multiple groups with the same 'Code' in my database.

    Can anyone tell me if this will create a problem? I haven't come upon any issues yet but still need to give it a full testing.

    Cheers
    dizzy

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Duplicate Group 'Codes' Link to this post

    Hmm AFAIK code should be unique (kinda like URLs), I guess most modules should use IDs rather than the codes so you should be fine. The 1 place where you would have trouble is the functions addToGroupByCode which would of course cause issues.

  • dizzystuff
    Avatar
    Community Member
    93 Posts

    Re: Duplicate Group 'Codes' Link to this post

    Ok, great, that's exactly the info I was looking for. I'll jump into the db and make sure the groups all have unique codes (for this site once the groups are setup they'll be pretty static), as a 'just in case' kind of thing.

    Is this a bug then? Should there be some sort of validation here?

    thanks

    593 Views
Page: 1
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.