Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] PHP error ...
 
Notifications
Clear all

[SOLVED] PHP error when dispatching work on a ticket

4 Posts
2 Users
0 Reactions
3,051 Views
(@lfrugere)
Posts: 39
Active Member
Topic starter
 
[#2930]

Hello,

I have updated our projeQtOr release this morning an when I dispatch work on a previously opened ticket, an error occured :

2016-01-19 10:01:15.362 ** ERROR ** ERROR **
2016-01-19 10:01:15.363
** ERROR ** on file '/var/www/projeqtor/model/persistence/SqlElement.php' at line (434)
2016-01-19 10:01:15.363
** ERROR ***** cause = trim() expects parameter 1 to be string, object given

Lionel.


 
Posted : 19 Jan 2016 12H16
(@babynus)
Posts: 14952
Member Admin
 

Hi,
I cannot reproduce.
I will investigate.
Ticket #1937 recorded


 
Posted : 19 Jan 2016 14H49
(@babynus)
Posts: 14952
Member Admin
 

Issue reproduced !
And fixed :woohoo:

Fix is to replace line 117 in /tool/saveDispatchWork.php from

$work->idAssignment=WorkElement::updateAssignment($work, $diff);

to

$ass=WorkElement::updateAssignment($work, $diff);
$work->idAssignment=($ass)?$ass->id:null;

 
Posted : 19 Jan 2016 15H52
(@lfrugere)
Posts: 39
Active Member
Topic starter
 

Perfect !

Thanks.


 
Posted : 19 Jan 2016 16H02
Share:

Scroll to Top