Home My Page Projects FusionForge
Summary Activity Forums Tracker Lists News SCM Files Mediawiki Hudson/Jenkins

[#712] Added tracker extra_field not mass updatebale

Date:
2014-08-26 07:43
Priority:
3
State:
Closed
Submitted by:
Peter Katzmann (pk16208)
Assigned to:
Franck Villaume (nerville)
Target Release:
5.3.2
Found in Version:
5.3.1
Severity:
major
Resolution:
Fixed
Summary:
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:

212c212,217
<
---
> // If an extrafield was added after the creation of the artifact
> // it has to be added afterwards
> foreach($extra_fields as $efield => $evalue) {
> if($evalue != '100' && !in_array($efield, $ef))
> $ef[$efield] = $evalue;
> }
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 Branch_5_3:
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.

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