Hi,
Testing the new version on DEMO site before migrate : I got a problem with the planning resetting on copying the project.
On the planning screen, I use the copy button
Results : the project is copied but the planning of the on-going project (the source) is reset and the allocations have disappeared !
you can try with the "projet DDP" on the demo site. (copies : projet DDP_2 and DDP_3 DDP_4).
Issue confirmed on Demo.
Stangely, I cannot reproduce on my local instance :silly:
Ticket #1844 created
:silly: More and more strange :
=> When copying DDP to DDP4, after adding assignments to DDP tasks : tasks on DDP disepear and DDP4 appear but with no assigned work...
=> When copying "Project One" to "Project One copied" : all is OK, both projects have correct assignments after copy.
Have to analyse initial status of this DDP project :huh:
Issue fixed.
To try the fix, just replace line 1492 in /model/persistence/SqlElement.php from
$crit=array('idResource'=>$this->idResource,'refType'=>get_class($this), 'refId'=>$this->id);
to
$crit=array('idResource'=>$this->idResource,'refType'=>get_class($this), 'refId'=>$newObj->id);
Fix will soon be deployed in patch V5.1.2
Ok,
Good you find the source, I let change the code for the DEMO site 😉
Patch is applied on Demo 😉