Results 1 to 8 of 8

Thread: max 10 items in select from listviews for mail-compose?

  1. #1
    reinieromc is offline Member
    Join Date
    Jan 2008
    Location
    Netherlands
    Posts
    7

    Default max 10 items in select from listviews for mail-compose?

    Hello,

    When i select more than 10 items from contacts-listview and hit the button for Compose e-mail, Sugar blocks me stating that i'm not allowed to select more than 10 items for mailcompose.

    This only happens when the preferences are set to use the sugar-mailclient.
    We've checked the code and it turns out that this limitation of 10 is in fact hard-coded and only checked for use of the sugar-mailclient.

    The strange thing is that when i compose an email in the sugar-mailclient and do a select for the 'TO' and select more than 10 contacts, all works fine. Mail gets send and the mail is actually archived with the contact.

    Does anyone have an idea of why this limitation of max. 10 item for mail-compose from listviews is enforced?

    Kind regards,

    Reinier Vis

  2. #2
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: max 10 items in select from listviews for mail-compose?

    I must agree it's a unnecessary limitation.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  3. #3
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: max 10 items in select from listviews for mail-compose?

    I must agree it's a unnecessary limitation.
    +1 ... might be something for the sugar team to look at and parameterise.

  4. #4
    bwang is offline Member
    Join Date
    Oct 2008
    Posts
    9

    Default Re: max 10 items in select from listviews for mail-compose?

    Hi Reinier,

    Could you share in which file is the limit hard coded?

    Thanks!

  5. #5
    reinieromc is offline Member
    Join Date
    Jan 2008
    Location
    Netherlands
    Posts
    7

    Default Re: max 10 items in select from listviews for mail-compose?

    Hello,

    No problem. I'll check with my collegae who did the analysis and let him reply.

    Regards,

    Reinier

  6. #6
    arnovdbrink is offline Senior Member
    Join Date
    Feb 2010
    Posts
    22

    Default Re: max 10 items in select from listviews for mail-compose?

    Hi,

    The exact code can be found in /jssource/src_files/include/javascript/sugar_3.js

    On line 1471 there's the function send_form_for_emails defined. On line 1473 there's a check for totalCount to be greater than 10. I'm not quite sure this one needs to be commented out, because this one seems to deal with mass updates. But on line 1515 in this same function there's another check for totalCount > 10.

    I commented out both if statements and rebuild the entire javascript for sugar. Afterwards everything worked out fine.

    Regards,
    Arno

  7. #7
    bwang is offline Member
    Join Date
    Oct 2008
    Posts
    9

    Default Re: max 10 items in select from listviews for mail-compose?

    Quote Originally Posted by arnovdbrink View Post
    Hi,

    The exact code can be found in /jssource/src_files/include/javascript/sugar_3.js

    On line 1471 there's the function send_form_for_emails defined. On line 1473 there's a check for totalCount to be greater than 10. I'm not quite sure this one needs to be commented out, because this one seems to deal with mass updates. But on line 1515 in this same function there's another check for totalCount > 10.

    I commented out both if statements and rebuild the entire javascript for sugar. Afterwards everything worked out fine.

    Regards,
    Arno
    Thanks a lot!

  8. #8
    LarsW is offline Member
    Join Date
    May 2010
    Posts
    8

    Default Re: max 10 items in select from listviews for mail-compose?

    I commented out both if statements and rebuild the entire javascript for sugar. Afterwards everything worked out fine.
    Sorry, but I dont think so. Only the Javascript-Error-Message is disabled after the changes in jssource/src_files/include/javascript/sugar_3.js. If we select 20 Contacts in the Listview and click the "Mail-Compose"-Button, the Sugar-Mail-Client will be openend but the "To:"-Field contains only 9 Receiver.

    Is there another Solution or some Minds to solve this Problem with Limitation of 9 Receivers ? Which file should be changed to increase or cancel this limitation?
    Thank you

    LarsW
    Sugar CE 5.5.2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using select button to select items from a subpanel
    By Glitch in forum Developer Help
    Replies: 0
    Last Post: 2009-11-18, 10:13 AM
  2. Compose mail to contacts from accounts
    By szerge in forum Feature Requests
    Replies: 4
    Last Post: 2009-09-16, 10:43 PM
  3. Replies: 0
    Last Post: 2007-06-27, 06:29 PM
  4. select contact button in compose email doesn't work
    By Systems Navigator in forum Help
    Replies: 1
    Last Post: 2007-06-06, 02:25 PM
  5. problems with compose mail
    By bmk in forum General Discussion
    Replies: 1
    Last Post: 2006-01-12, 08:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •