"Copy of copy" of timeslots copies the former timeslot
Simple and useful time tracker
Brought to you by:
aglazachev,
zgibek
Steps to reproduce:
1) Copy an existing timeslot (I'm in a subtask) (let's call it timeslot A)
2) Paste the copied timeslot and maybe edit it changing hours and days (let's call the new timeslot B)
3) Copy the timeslot B
4) Paste it: the timeslot A dates appears in the new timeslot C
I suppose that I shoud have the dates of timeslot B
Moreover (but I really don't know if it's a bug or a wanted feature) in the .xml file all the copied timeslots have the same "timeslotId"
Good day, Francesco.
It is a bug. Should be the dates fo timeslot B, and yes, timeSlotId should be null (or new).
If you can try to fix it, I'll review the branch.
Thanks for the feedback )
I verified that the problems is in the wrong timeslotId of the new timeslot copied. I'll try to fix it. I'll let you know
Hi Andrey,
I'm stubborn :D and I found a solution.
Here is attached the patch file that you can apply. Anyway check the fixing
and apply a better solution if you have one.
Regards
Francesco
Il giorno ven 31 mag 2019 alle ore 09:12 Francesco frotondella@users.sourceforge.net ha scritto:
Related
Bugs:
#90Hi, Francesco.
The old DnD code is not good. So i was looking for a simple solution based on your patch.
And I think, we should create the new timeslot instead of cloning.
Check out the bug-90-timeslots branch. It fixes the bug for me. Test it with your data.
Email me, if you have any ideas/questions.
Regards, Andrey