Package: eqonomize
Version: 0.5-3
Severity: important
Tags: patch
If you set up a scheduled transaction with a weekly recurrence, and then
save, the resultant XML for the recurrence is incorrect.
For example, if I set up a scheduled transaction that recurs every
Monday, the relevant XML element will be saved with the attribute
days=""
instead of
days="1".
When this faulty XML is reloaded, the weekly recurrence is lost.
A patch from upstream is attached. See
http://sourceforge.net/tracker/index.php?func=detail&aid=1777640&group_id=173799&atid=866832
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages eqonomize depends on:
ii kdelibs4c2a 4:3.5.8.dfsg.1-4 core libraries and binaries for al
ii libc6 2.7-4 GNU C Library: Shared libraries
ii libgcc1 1:4.2.2-4 GCC support library
ii libqt3-mt 3:3.3.7-9 Qt GUI Library (Threaded runtime v
ii libstdc++6 4.2.2-4 The GNU Standard C++ Library v3
Versions of packages eqonomize recommends:
ii eqonomize-doc 0.5-3 documentation for the Eqonomize! a
-- no debconf information
--- src/recurrence.cpp.old 2007-05-18 09:43:23.000000000 +0200
+++ src/recurrence.cpp 2007-08-20 16:15:57.000000000 +0200
@@ -542,13 +542,13 @@ void WeeklyRecurrence::save(QDomElement
Recurrence::save(e);
e->setAttribute("frequency", i_frequency);
QString days;
- if(b_daysofweek[0]) days += 1;
- if(b_daysofweek[1]) days += 2;
- if(b_daysofweek[2]) days += 3;
- if(b_daysofweek[3]) days += 4;
- if(b_daysofweek[4]) days += 5;
- if(b_daysofweek[5]) days += 6;
- if(b_daysofweek[6]) days += 7;
+ if(b_daysofweek[0]) days += '1';
+ if(b_daysofweek[1]) days += '2';
+ if(b_daysofweek[2]) days += '3';
+ if(b_daysofweek[3]) days += '4';
+ if(b_daysofweek[4]) days += '5';
+ if(b_daysofweek[5]) days += '6';
+ if(b_daysofweek[6]) days += '7';
e->setAttribute("days", days);
}