Results 1 to 8 of 8

Thread: Project task problems

  1. #1
    davide69 is offline Member
    Join Date
    Jul 2009
    Posts
    7

    Default Project task problems

    Hi to all
    I have a problem with project task due to a changement made in Layout view with studio.
    With layout editor I have removed fields "duration" and "duration unit" from edit view.
    After this operation, when I create a new project task, I have an error because duration and duration unit are required field.
    To repair the problem I have added duration and duration unit in edit view layout but now these 2 fields have become visible in add project task mask and this is not correct.
    How can I hide these two fields in add project task mask ?

    thank for support
    davide

  2. #2
    davide69 is offline Member
    Join Date
    Jul 2009
    Posts
    7

    Question Re: Project task problems

    Hi to all
    I have isolated the problem:
    why if I have in C:\Program Files\sugarcrm-5.2.0e\htdocs\sugarcrm\modules\ProjectTask\metadat a\editviewdefs.php
    input type="hidden"

    *****************************
    array (
    array (
    'name' => 'duration',
    'hideLabel' => true,
    'customCode' => '<input type="hidden" name="duration" id="projectTask_duration" value="0" />',
    ),
    ),
    array (
    array (
    'name' => 'duration_unit',
    'hideLabel' => true,
    'customCode' => '<input type="hidden" name="duration_unit" id="projectTask_durationUnit" value="Days" />',
    ),
    ),
    *****************************

    I see in edit mask the field "duration" and "duration unit" ?
    see attachment

    Thank Davide
    Attached Images Attached Images  

  3. #3
    ros.vol is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Eastern Europe / Ukraine / Chernivtsi
    Posts
    114

    Smile Re: Project task problems

    Hello,

    so you hide this fields but they still on the form?

    Cheers,
    Rostyslav Volonchuk

    SugarCRM development and customizations

  4. #4
    davide69 is offline Member
    Join Date
    Jul 2009
    Posts
    7

    Default Re: Project task problems

    Yes, this is the problem...

  5. #5
    ros.vol is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Eastern Europe / Ukraine / Chernivtsi
    Posts
    114

    Smile Re: Project task problems

    Did you use Studio before?

    I mean does file "custom/modules/ProjectTask/metadat a/editviewdefs.php" exist?

    Cheers,
    Rostyslav Volonchuk

    SugarCRM development and customizations

  6. #6
    davide69 is offline Member
    Join Date
    Jul 2009
    Posts
    7

    Default Re: Project task problems

    Yes I use studio to change edit layout and (mea culpa) I have removed the field "duration" and "duration unit"
    After I have re-added the fields but the result is that the fields are not hidden.

    Yes, the file "custom/modules/ProjectTask/metadata/editviewdefs.php" exist

    Ciao davide

  7. #7
    ros.vol is offline Sugar Community Member
    Join Date
    Dec 2008
    Location
    Eastern Europe / Ukraine / Chernivtsi
    Posts
    114

    Smile Re: Project task problems

    Open "custom/modules/ProjectTask/metadata/editviewdefs.php"

    remove your definition of "duration" and "duration_unit"
    and add following
    PHP Code:
    'templateMeta' => array(
                  
    'form' => array(
                      
    'hidden'=>array('
                         '
    <input tabindex="0"  type="hidden" name="duration" id="projectTask_duration" value="0" />',
                         '
    <input tabindex="0"  type="hidden" name="duration_unit" id="projectTask_durationUnit" value="Days" />,
                       ),................................ 
    Rostyslav Volonchuk

    SugarCRM development and customizations

  8. #8
    davide69 is offline Member
    Join Date
    Jul 2009
    Posts
    7

    Thumbs up Re: Project task problems

    Yes !! this solves the problem
    If I delete the file
    custom/modules/ProjectTask/metadata/editviewdefs.php
    the result is to restore the "factory" default of edit project task layout....
    Right !!! thanks.... thanks a lot

    davide

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Project Task Problems in 5.2
    By reedber in forum Installation and Upgrade Help
    Replies: 22
    Last Post: 2009-03-18, 12:05 PM
  2. Project Task Problems with 5.2.0
    By vietise in forum Project Management
    Replies: 9
    Last Post: 2009-01-30, 06:59 PM
  3. Replies: 2
    Last Post: 2008-05-07, 04:46 PM
  4. Problem when I crete a Project Task and Assigning to a Project.
    By rollno51 in forum General Discussion
    Replies: 0
    Last Post: 2007-07-26, 09:01 AM
  5. Replies: 0
    Last Post: 2005-08-19, 08:43 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
  •