Menu

Add attachments to contact

Hans Wurst
2012-12-17
2013-01-16
  • Hans Wurst

    Hans Wurst - 2012-12-17

    Hello everyone,

    how to add a direct attachment to class Contact or Person, it should works like the attachments @ the Helpdesk.

    I tried to change this

    $aAllowedClasses = MetaModel::GetModuleSetting('itop-attachments', 'allowed_classes', array('Ticket'));

    to

    $aAllowedClasses = MetaModel::GetModuleSetting('itop-attachments', 'allowed_classes', array('Contact'));

    but it doesn't work.

    Please help

    Thanks!!!

     
  • Hans Wurst

    Hans Wurst - 2013-01-15

    Can no one Help me in this case?

     
  • Denis

    Denis - 2013-01-15

    Hi Hans,

    You don't need to change the code that read the configuration, just change the value in the configuration file (in iTop 2.0 conf/production/config-itop.php).

    You'll see something like:

        'itop-attachments' => array (
                'allowed_classes' => array (
                          0 => 'Ticket',
                        ),
                'position' => 'relations',
        ),
    

    Change it to:

        'itop-attachments' => array (
                'allowed_classes' => array (
                          0 => 'Ticket',
                          1 => 'Contact',
                        ),
                'position' => 'relations',
        ),
    

    And refresh the page. You'll have attachments on both the tickets and the contacts.

    Hope this helps,

    • Denis
     
  • Hans Wurst

    Hans Wurst - 2013-01-16

    Thanks a lot Denis!!!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.