View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] V9.1.2 Error when adding BillLine - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

[SOLVED] V9.1.2 Error when adding BillLine

More
29 Jui 2021 17:44 - 29 Jui 2021 17:50 #1 by Baryhobal
Hello,

I found an error which happens when adding a new bill line in v9.1.2. I don't know if it has been fixed yet.In tool/saveBillLine.php, on line 167, 174 and 181, strpos checks if $catalogSpecification is in $bill/$quot/$order->comment. However, sometimes $catalogSpecification is an empty string and this throws the following error:
***** ERROR ***** [V9.1.2] ERROR *****
***** ERROR ***** [V9.1.2] on file '/var/www/html/projeqtor/tool/saveBillLine.php' at line (174)
***** ERROR ***** [V9.1.2] cause = strpos(): Empty needle

A fix could be to first check if $catalogSpecification is empty.
For example, lines 136 to 142 could be changed from
$catalogSpecification = "";
$boolCatalog = false;
if (array_key_exists('billLineIdCatalog',$_REQUEST) and $_REQUEST['billLineIdCatalog']) {
  $boolCatalog = true;
  $catalog=new Catalog($_REQUEST['billLineIdCatalog']);
  $catalogSpecification = ($catalog->specification)?$catalog->specification:"";
}

to
$catalogSpecification = "";
$boolCatalog = false;
if (array_key_exists('billLineIdCatalog',$_REQUEST) and $_REQUEST['billLineIdCatalog']) {
  $catalog=new Catalog($_REQUEST['billLineIdCatalog']);
  if ($catalog->specification) {
    $boolCatalog = true;
    $catalogSpecification = $catalog->specification;
  }
}
Last edit: 29 Jui 2021 17:50 by Baryhobal. Reason: format

Please Connexion or Create an account to join the conversation.

More
30 Jui 2021 09:55 #2 by babynus
This is already fixed in V9.1.5
Please always migrate to last patch level when you are on a version.

Patch is last number, the x in A.B.x
A is major version, B is evolutive version, x is patch
Patches only include bug fixing.

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.041 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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