bugphpGroupWare - Bugs: bug #12582, A warning is displayed when...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #12582: A warning is displayed when todo_level is negative

Submitter:  Charles Martin <cafefroid>
Submitted:  Wed 06 Apr 2005 02:37:58 PM UTC
   
 
Category:  todo Item Group:  0.9.16.005
Severity:  3 - Normal Priority:  4
Status:  Fixed Privacy:  Public
Assigned to:  skwashd Open/Closed:  Closed
Component Version:  None Operating System:  None
Reproducibility:  Every Time Planned Release:  None
Fixed Release: 

Wed 07 Dec 2005 11:33:53 AM UTC, comment #1: 

This is fixed in stable cvs, please update to grab the fix

Pretty simple changed the == to <=

Dave Hall <skwashd>
Group administrator
Wed 06 Apr 2005 02:37:58 PM UTC, original submission:  

I know todo_level shouldn't have dropped down below 0 but, I was trying to push things to their limit and building potential infinite loops within the app by setting the parent of an item to it's child etc. to see how the code reacted. This, eventually led to one of my item's level to be set to -1 (I need to check why this happenned and submit the bug, but, anyways...)

I get this warning message :

Warning: str_repeat(): Second argument has to be greater than or equal to 0. in [...]\webpub\todo\inc\class.ui.inc.php on line 209

Which could be easily avoided by making sure a couple of lines before that, if todo_level is negative, get it back to 0

Charles Martin <cafefroid>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-12-07 skwashd StatusNone Fixed
    Assigned toNone skwashd
    Open/ClosedOpen Closed
2005-04-06 cafefroid Carbon-Copy- Added cafefroid

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code