Results 1 to 3 of 3

Thread: Strange behavior of 'type' => 'file'

  1. #1
    Advari is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    16

    Default Strange behavior of 'type' => 'file'

    I'm currently workking on a custom module and added the following code to editviewsdefs.php :

    PHP Code:
    array (
    'name' => 'quote',
     
    'label' => 'LBL_QUOTE',
    'type' => 'file',
    ), 
    The display is ok but when I want to save, a warning stop the current action (even is the field is not empty) saying : "Missing required field:".

    Any idea of how to resolve this problem ?

  2. #2
    ramesh83 is offline Sugar Community Member
    Join Date
    May 2009
    Location
    Hyderabad
    Posts
    92

    Thumbs up Re: Strange behavior of 'type' => 'file'

    Hi , try

    'required' => true,

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Strange behavior of 'type' => 'file'

    It seems you create the field as a required one.
    You can go to Studio and update it to non required.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. displayParams strange behavior
    By zacc in forum Help
    Replies: 4
    Last Post: 2009-05-04, 09:15 AM
  2. Strange AJAX auto complete behavior
    By Mithun in forum Developer Help
    Replies: 1
    Last Post: 2009-04-22, 06:00 PM
  3. Strange SQL behavior on custom modules
    By enicot in forum Developer Help
    Replies: 3
    Last Post: 2009-02-23, 09:36 PM
  4. Replies: 2
    Last Post: 2006-07-28, 11:50 AM
  5. User Admin - Strange Behavior
    By mnaish in forum Help
    Replies: 0
    Last Post: 2005-01-26, 06:17 PM

Tags for this Thread

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
  •