Bug #5459

impossibilité d'ajouter un document à un ticket

Added by tilb over 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:11/13/2015
Priority:NormalDue date:
Assignee:yllen% Done:

100%

Category:-
Target version:1.7

Description

Bonjour,

Sur la version 1.6.0 il y a un problème sur la méthode methodAddTicketDocument.
A l'utilisation on obtient un code retour 15.

A la ligne 1294 du script methodhelpdesk.class.php:

$response = parent::uploadDocument($params, $protocol, $filepath);

A la ligne 655 du script methodcommon.class.php:

static function uploadDocument($params, $protocol, $filename, $document_name, $filepath) {

On voit que l'appel de la fonction uploadDocument ne correspond pas à sa définition, du coup le paramètre $filepath n'est pas correct lors de son utilisation ligne 374 du script methodcommon.class.php.

Florian

Associated revisions

Revision 419
Added by yllen over 4 years ago

fix bug introduce in r4992 - fixed #5459 (thanks tilb)

History

#1 Updated by jdan over 4 years ago

Dans le fichier methodcommon.class.php remplacer la ligne :
$size = file_put_contents($filepath, $content);
par : $size = file_put_contents($filename, $content);

#2 Updated by yllen over 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r419.

#3 Updated by yllen over 4 years ago

  • Assignee set to yllen
  • Target version set to 1.7

#4 Updated by remi about 4 years ago

  • Status changed from Resolved to Closed

Confirmed

Also available in: Atom PDF