MantisBT - v3.4 Release (Current)
View Issue Details
0001681v3.4 Release (Current)Projectspublic2015-11-04 05:232019-01-03 12:53
Reporterdelienf 
Assigned Tocaseydk 
PriorityhighSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
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 Filespng 2015-11-04 14_22_41-web2Project __ projects index.png (30,623) 1969-12-31 16:00
https://bugs.web2project.net/file_download.php?file_id=441&type=bug
png

Notes
(0003864)
caseydk   
2016-12-30 23:53   
Resolved:

https://github.com/web2project/web2project/commit/125b10e1daa6cbcfb1dde828fdd2587401e98a80
(0003949)
caseydk   
2019-01-03 12:53   
In the 31 Dec 2018 release: http://docs.web2project.net/release-notes/3.4.html

Issue History
2015-11-04 05:23delienfNew Issue
2015-11-04 05:23delienfFile Added: 2015-11-04 14_22_41-web2Project __ projects index.png
2016-01-19 05:13optoSeveritymajor => block
2016-01-19 05:13optoAdditional Information Updatedbug_revision_view_page.php?rev_id=138#r138
2016-12-26 10:43caseydkProjectv3.3 Release => v3.4 Release (Current)
2016-12-29 23:51caseydkAssigned To => caseydk
2016-12-29 23:51caseydkStatusnew => assigned
2016-12-30 23:53caseydkStatusassigned => resolved
2016-12-30 23:53caseydkResolutionopen => fixed
2016-12-30 23:53caseydkNote Added: 0003864
2019-01-03 12:53caseydkNote Added: 0003949
2019-01-03 12:53caseydkStatusresolved => closed