Anonymous Login
2023-06-08 18:19 PDT

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001681v3.4 Release (Current)Projectspublic2019-01-03 12:53
Reporterdelienf 
Assigned Tocaseydk 
PriorityhighSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001681: Custom fields lost when updating project status(es) from "Update Projects Statuses" button
DescriptionCustom field contents related to projects are not retained when one or more projects get their status updated with the Update button at the bottom of the project list.
Steps To ReproduceSelect projects to receive status update, select status, push the button: custom fields are gone ...
Additional Informationwe run through this sequence:
    $project = new CProject();
    $project->load($project_id);
    $project->project_status = $status_id;
    foreach ($project->getContactList() as $contact_data){
        $project->project_contacts[]=$contact_data['contact_id'];
    }
    foreach ($project->getDepartmentList() as $department_data){
        $project->project_departments[]=$department_data['dept_id'];
    }
    $project->store();

it seems that
   $project->load($project_id); followed by some changes to $project and
    $project->store();

looses the custom fields, which is indeed a serious bug.

Klaus

TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0003864

caseydk (administrator)

Resolved:

https://github.com/web2project/web2project/commit/125b10e1daa6cbcfb1dde828fdd2587401e98a80

~0003949

caseydk (administrator)

In the 31 Dec 2018 release: http://docs.web2project.net/release-notes/3.4.html
+Notes

-Issue History
Date Modified Username Field Change
2015-11-04 05:23 delienf New Issue
2015-11-04 05:23 delienf File Added: 2015-11-04 14_22_41-web2Project __ projects index.png
2016-01-19 05:13 opto Severity major => block
2016-01-19 05:13 opto Additional Information Updated View Revisions
2016-12-26 10:43 caseydk Project v3.3 Release => v3.4 Release (Current)
2016-12-29 23:51 caseydk Assigned To => caseydk
2016-12-29 23:51 caseydk Status new => assigned
2016-12-30 23:53 caseydk Status assigned => resolved
2016-12-30 23:53 caseydk Resolution open => fixed
2016-12-30 23:53 caseydk Note Added: 0003864
2019-01-03 12:53 caseydk Note Added: 0003949
2019-01-03 12:53 caseydk Status resolved => closed
+Issue History