View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - multiple save don't work - ProjeQtOr

Next training sessions

 

 

 

Demonstration

May 31, 2022
September 13, 2022

 

Plan your projects with ProjeQtOr

June 22 and 23, 2022

 

Administer and Configure ProjeQtOr

June 29 and 30, 2022

   

places are limited, register quickly ! 

 
 

multiple save don't work

More
10 Jan 2022 17:58 #1 by fxpourtier
Hi all,

A little bug in http server log : 

[Mon Jan 10 17:42:47.155253 2022] [:error] [pid 7508:tid 1964] [client 127.0.0.1:59469] PHP Fatal error:  Can't use function return value in write context in C:\\Program Files (x86)\\EasyPHP-Webserver-14.1b2\\www\\projeqtor\\tool\\saveObjectMultiple.php on line 76, referer: http://127.0.0.1:888/projeqtor/view/main.php?directAccess=true&objectClass=Project&objectId=000063

I open the file projeqtor\tool\saveObjectMultiple.php at line 76 : 
}elseif (!empty(RequestHandler::getValue('multipleUpdateValueList')) and isForeignKey($fieldSearch, $obj)){

The "empty" statement seem obsolete

I correct it as :  
}elseif (RequestHandler::getValue('multipleUpdateValueList') and isForeignKey($fieldSearch, $obj)){

it's right ?

best regards
 

Please Log in or Create an account to join the conversation.

More
13 Jan 2022 10:50 #2 by babynus
Replied by babynus on topic multiple save don't work
No, your PHP version does not allow

empty(function())

So fix is 

$lst=RequestHandler::getValue('multipleUpdateValueList');
if(strpos($field, 'Element_'))$fieldSearch=substr($field,strpos($field, 't_')+2);
if(trim(RequestHandler::getValue('newMultipleUpdateValue'))!=''){
  $newValue=RequestHandler::getValue('newMultipleUpdateValue');
}elseif (trim(RequestHandler::getValue('newMultipleUpdateValueNum'))!=''){
  $newValue=RequestHandler::getValue('newMultipleUpdateValueNum');
}elseif (trim(RequestHandler::getValue('multipleUpdateTextArea'))!=''){
  $newValue=RequestHandler::getValue('multipleUpdateTextArea');
}elseif (!empty($lst) and isForeignKey($fieldSearch, $obj)){
  foreach ($lst as $idL=>$valList){
    $newValue=$valList;
  }

Fix will be published on V9.4.2

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
13 Jan 2022 10:51 #3 by babynus
Replied by babynus on topic multiple save don't work
What is your version of PHP ?

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
13 Jan 2022 13:11 - 13 Jan 2022 13:18 #4 by fxpourtier
Replied by fxpourtier on topic multiple save don't work
Hi,

Thank for your reply :-)
My version of PHP is 5.4.30 (in easyphp webserver 14.1. beta 1)

This version PHP is too old ?
Maybe i must change easyPHP to another product ?

best regards
Last edit: 13 Jan 2022 13:18 by fxpourtier.

Please Log in or Create an account to join the conversation.

More
13 Jan 2022 19:51 #5 by babynus
Replied by babynus on topic multiple save don't work
Yes,
Check prerequisites : www.projeqtor.org/en/product-en/technica...uct-prerequisites-en
 

Projector V9.0 and over requires at least PHP 5.6.

Babynus
Administrator of ProjeQtOr web site
Attachments:
The following user(s) said Thank You: fxpourtier

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.041 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.