<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>256374</bug_id>
          
          <creation_ts>2010-11-08 16:29:51 +0000</creation_ts>
          <short_desc>Grouping with derived fields does not work correctly</short_desc>
          <delta_ts>2010-11-15 01:57:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>tellico</product>
          <component>general</component>
          <version>2.3</version>
          <rep_platform>RedHat Enterprise Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>kexxxi</reporter>
          <assigned_to name="Robby Stephenson">robby</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1041778</commentid>
    <comment_count>0</comment_count>
    <who name="">kexxxi</who>
    <bug_when>2010-11-08 16:29:51 +0000</bug_when>
    <thetext>Version:           2.3 (using KDE 4.5.2) 
OS:                Linux

The group view is not updated correctly when grouping is based on derived field and an entry is updated in such a way that grouping changes.

Reproducible: Always

Steps to Reproduce:
1. Create a new custom collection.

2. Add a simple text field &apos;Country&apos; and a number field &apos;Year&apos; to the collection.

3. Add a new derived field CountryYear with template &apos;%{country} - %{year}&apos; to the collection. Allow grouping for the field.

4. Create two new entries: [Title: &apos;first&apos;, Country: &apos;USA&apos;, Year: 2000] and [Title: &apos;second&apos;, Country: &apos;USA&apos;, Year: 2001]. Fields are now grouped into two groups &apos;USA - 2000&apos; and &apos;USA - 2001&apos;.

5. Edit the year of the second entry from 2001 to 2000.


Actual Results:  
There is now three entries in the group view but two entries in the column view. The second entry appears twice in the group view.

Expected Results:  
There should be two entries in both views.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1044423</commentid>
    <comment_count>1</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2010-11-15 01:57:00 +0000</bug_when>
    <thetext>SVN commit 1197149 by rstephenson:

Fix bug with updating gorups for derived values after modifying them.

BUG:256374


 M  +4 -0      ChangeLog  
 M  +7 -6      src/collection.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1197149</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>