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!!!
Can no one Help me in this case?
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,
Thanks a lot Denis!!!
Log in to post a comment.
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!!!
Can no one Help me in this case?
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:
Change it to:
And refresh the page. You'll have attachments on both the tickets and the contacts.
Hope this helps,
Thanks a lot Denis!!!