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

Submitted by:  Charles Martin <cafefroid>
Submitted on:  Wed 06 Apr 2005 02:37:58 PM UTC  
 
Item Group: 0.9.16.005Category: todo
Severity: 3 - NormalPriority: 4
Status: FixedPrivacy: Public
Assigned to: Dave Hall <skwashd>Open/Closed: Closed
Component Version: NoneOperating System: None
Reproducibility: Every TimePlanned 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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 07 Dec 2005 11:33:53 AM UTCskwashdStatusNone=>Fixed
  Assigned toNone=>skwashd
  Open/ClosedOpen=>Closed
Wed 06 Apr 2005 02:37:59 PM UTCcafefroidCarbon-Copy-=>Added cafefroid

Back to the top


Powered by Savane 3.1-cleanup1