Anonymous Login
2021-09-17 12:43 PDT

View Revisions: Issue #1681

Summary 0001681: Custom fields lost when updating project status(es) from "Update Projects Statuses" button
Revision 2016-01-19 05:13 by opto
Additional Information we 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

Revision 2015-11-04 05:23 by delienf
Additional Information