Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"0" unit value reseting to "100.00" after reopening file #23

Closed
GoogleCodeExporter opened this issue Jun 28, 2015 · 6 comments
Closed

Comments

@GoogleCodeExporter
Copy link

Copied from the bug tracker on SourceForge:
http://sourceforge.net/tracker/?func=detail&atid=535427&aid=2728132&group_id=727
28

Version: 2.0.9
OS: openSUSE Linux 11.1

Steps to reproduce:
1. Create new project
2. Create new resource (human)
3. Create new task
4. Open task properties
5. Attach created resource to this task in "Resources" tab
6. Set "Unit" value to "0"
7. Save task
8. Save project
9. Close software
10.Open created project
11.Open task properties
12. Open "Resources" tab

Value of "Unit" now "100.00" and not a "0" or "0.00".

Original issue reported on code.google.com by dbarashev on 3 Apr 2009 at 11:55

@GoogleCodeExporter
Copy link
Author

Original comment by dbarashev on 3 Apr 2009 at 11:55

  • Added labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

I looked at this, was a bit confusing since it saves correctly and only 
triggers when
Unit is 0. It seems that when the project is loaded from file, in
AllocationTagHandler, it manually checks if the value is 0 and sets it to 100 :

// if no load is specified I assume 100% load
// this should only be the case if old files
// were loaded.
if (load == 0) {
    load = 100;
}

Arbitrarily changing saved data on load seems like a bad idea, I uploaded a 
patch to
the patch tracker on sourceforge that removes this "feature".

Original comment by mjdra...@gmail.com on 13 May 2009 at 11:15

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision d4be9e2babf8.

Original comment by maarten....@gmail.com on 16 Apr 2011 at 12:24

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by dbarashev on 17 Apr 2011 at 11:18

  • Added labels: __Target-Praha

@GoogleCodeExporter
Copy link
Author

Original comment by dbarashev on 27 Nov 2011 at 7:56

  • Changed state: FeelFreeToTest

@GoogleCodeExporter
Copy link
Author

Original comment by dbarashev on 22 Sep 2014 at 12:19

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant