[#712] Added tracker extra_field not mass updatebale



Detailed description

Hello, during migration tests we found that it is not possible to trigger a mass update when we added a new extra_field. Simple editing and save works instead as expected.

The following simple patch fix this specific problem: [fusionforge]/common/tracker/actions/tracker.php

diff tracker.php.old tracker.php:



> // If an extrafield was added after the creation of the artifact > // it has to be added afterwards > foreach($extrafields as $efield => $evalue) { > if($evalue != '100' && !inarray($efield, $ef)) > $ef[$efield] = $evalue; > }

General Information
Submitted by:
Peter Katzmann
Date Submitted: 2014-08-26 07:43
Last Modified by: Nobody
Last Modified: 2017-11-02 20:00
Date Closed: 2014-08-26 14:29
Permalink: https://fusionforge.org/tracker/a_follow.php/712
Internal Fields
Data Type: Bugs
Assigned to: Franck Villaume (nerville)
State: Closed
Priority: 3
Extra Fields
Target Release:
Found in Version:
Follow-up tabs
Message  ↓
Date: 2014-08-26 14:29
Sender: Franck Villaume

I reproduced the bug. There was a bug in the custom extrafield status creation, the default value for mass action was not initialize. Fix available on Branch53: commit: 503c122f9cf7ddbc6c005eb5c5dc4330a1099f0e

Your solution works too.

Date: 2014-08-26 09:30
Sender: Peter Katzmann

Well, the problem only occurs with a Status field.

Using existing tracker with existing tracker items add extra field of type status add some entries to this extra field

now go back to your tracker select some choose mass update change your new status field Choose Mass Update

This leads to error message: [#20360]: Workflow error: You are not authorized to change the Status (100 => )

Now select one tracker item change the new extra field Save changes Now i get succesfully updated Now this Tracker item is also "mass updatable"

Date: 2014-08-26 08:17
Sender: Franck Villaume

Can you provide a complete scenario to reproduce your bug ?

Here is my test: I create a new tracker. I create a new custom field : checkbox with value 1, 2. I create 2 bugs. I set the checkbox to 1. I try the mass update. I set the checkbox to 2. It works. I create a second custom field (after the creating of the artifacts) : selectbox with value 1, 2. I did not set anything in each already created bugs. I try the mass update. I set the selectbox to 1. It works.

by the way, if you provide code, can you provide a unified diff ? it will be easier to use it.

thank for your feedback.

No attached documents

No related commits.

Field Old Value Date By
status_idOpen2014-08-26 14:29
Franck Villaume
close_dateNone2014-08-26 14:29
Franck Villaume
assigned_tonone2014-08-26 14:29
Franck Villaume
Target ReleaseNone2014-08-26 14:29
Franck Villaume
ResolutionAwaiting Response2014-08-26 14:29
Franck Villaume
Target Release5.3.22014-08-26 08:17
Franck Villaume
ResolutionNone2014-08-26 08:17
Franck Villaume

No relations found.