Results 1 to 4 of 4
Like Tree2Likes
  • 2 Post By eggsurplus

Thread: "0" in custom module subpanel name not showing

  1. #1
    PunctuationMark Guest

    Default "0" in custom module subpanel name not showing

    Hi,

    I have a custom subpanel in one of my custom module. Whenever i save a record with "0" as name it's not showing on the subpanel.
    is this a bug?

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,858

    Default Re: "0" in custom module subpanel name not showing

    This is probably due to an empty() check somewhere before displaying the data. If empty, then display nothing. 0 resolves to true for empty() so that would be why nothing is being displayed. You can verify this by entering ".0" instead of "0". " 0" with a space may do it too if no stripping is done.
    PunctuationMark and asavaliya like this.
    [SIGPIC][/SIGPIC]

    Using CE and have 2 or more users? You need SecuritySuite - Teams

  3. #3
    PunctuationMark Guest

    Default Re: "0" in custom module subpanel name not showing

    Thanks eggsurplus but i forgot to mention that on the listview the "0" is being displayed. But on the subpanel it is blank. Also, i'm not checking whether the field is empty because i'm populating it from a loop counter.

  4. #4
    PunctuationMark Guest

    Default Re: "0" in custom module subpanel name not showing

    I've bumped to this issue again and i would highly recommend eggsurplus' answer. Ex. $lead->name = $lead->name . " ";

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 2011-02-08, 06:05 PM
  2. Replies: 4
    Last Post: 2009-12-18, 05:52 PM
  3. Replies: 2
    Last Post: 2009-02-26, 05:55 PM
  4. Replies: 2
    Last Post: 2008-10-12, 05:08 PM

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
  •