Results 1 to 2 of 2

Thread: Bug in Note linked to a Meeting

  1. #1
    inmapi is offline Junior Member
    Join Date
    Aug 2006
    Posts
    3

    Unhappy Bug in Note linked to a Meeting

    To reproduce:
    Create a Note and link it to a meeting (select meeting in the top right dropdown then push the select button and choose a meeting) then save.
    In the detail view of note the "meeting:" label is shown but the link to related meeting is missing.

    If you open the detail view of th relevant meeting the note is listed in the subpanel.
    So it is only a display problem in the note detail view.

    Found in 4.2.0d and 4.2.1.b, I had no time to test on 4.5.0BETA.

    Regards
    Massimo

  2. #2
    Dietrich is offline Member
    Join Date
    Sep 2006
    Posts
    6

    Default Re: Bug in Note linked to a Meeting

    Hi...

    I'm using 4.2.1b and had the same problem. I had to add some lines to Note.php to work this out:
    It's about the function fill_in_additional_parent_fields(), there you have to add a case for Meetings, code follows:

    ...
    elseif($this->parent_type == "Meetings")
    {
    require_once("modules/Meetings/Meeting.php");
    $parent = new Meeting();
    $query = "SELECT name , assigned_user_id parent_name_owner from $parent->table_name where id = '$this->parent_id'";
    $result =$this->db->query($query,true," Error filling in additional detail fields: ");

    // Get the id and the name.
    $row = $this->db->fetchByAssoc($result);
    if($row && !empty($row['parent_name_owner']))
    {
    $this->parent_name_owner = $row['parent_name_owner'];
    $this->parent_name_mod = $this->parent_type;
    }
    if($row != null)
    {
    if($row['name'] != '') $this->parent_name = stripslashes($row['name']);
    }
    }

    ...

    I hope this will do for you...

    With kind regards,
    Tanja

Thread Information

Users Browsing this Thread

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

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
  •