After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 326692 - Extra comma in between mail ids when mail id selected from 'Select contacts' UI
Extra comma in between mail ids when mail id selected from 'Select contacts' UI
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: general
2.24.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Milan Crha
Evolution QA team
Depends on: 272391
Blocks:
 
 
Reported: 2006-01-12 05:59 UTC by Poornima
Modified: 2013-09-14 16:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed eds patch (2.95 KB, patch)
2008-08-27 10:11 UTC, Milan Crha
none Details | Review

Description Poornima 2006-01-12 05:59:43 UTC
While composing mail, selected first mail id for 'To' field from 'autocompletion' list.
Next click on 'To' button, select Conatcts from Addressbook' popsup.
In that select an id, and close it.
Observe there are two commas in between two mail ids.

If both the ids are selected from 'Select contacts addressbook' the extra comma is not reproducible.
Comment 1 Poornima 2006-01-12 06:00:15 UTC
Confirming it as it is always reproducible
Comment 2 André Klapper 2006-08-28 20:54:17 UTC
confirming, still in 2.7.92
Comment 3 Matthew Barnes 2008-03-11 00:27:36 UTC
Bumping version to a stable release.
Comment 4 Milan Crha 2008-08-27 10:11:11 UTC
Created attachment 117441 [details] [review]
proposed eds patch

for evolution-data-server;

I investigated this and in actual version the selector dialog shows some fake destination "<?>" in it after completion. I believe the core issue is the same.
As far as I can tell, the problem is that last ", " added at the end of the entry text when done with autocompleting. This adds also a fake destination to the destination store, just to have one ready to update when user types.
The patch just adds a sanitizing of the store on the focus_out event, by removing those fake destinations. The side-effect of this patch is also that when someone sees "ENameSelectorEntry is out of sync with model!" on the console, then just go to the other widget synchronizes it and user can see what will be used. This is a good side-effect, I hope.
Comment 5 Milan Crha 2008-08-27 15:18:54 UTC
Just one note, I believe better solution would be to commit patch from bug #272391 and instead of playing with ranges and trying to get destination description from the field text simply use get_destination_textrep introduced there. I'll rewrite patch when/if the second one will be approved.
Comment 6 Srinivasa Ragavan 2008-08-31 13:04:34 UTC
Milan, bug #272391 has some UI freeze elements. In which case, you can commit it for trunk for 2.23.91. REwork and commit for 2.25.x later.. sounds fine?
Comment 7 Suman Manjunath 2008-09-01 03:38:09 UTC
Patch committed to SVN trunk as r1766
http://svn.gnome.org/viewvc/evolution-exchange?view=revision&revision=1766

Bug to be closed after string-change is announced. 
Comment 8 Suman Manjunath 2008-09-01 03:40:02 UTC
oops.. sorry for the spam - comment #7 was for bug #549228
Comment 9 Milan Crha 2008-09-01 09:01:05 UTC
(In reply to comment #6)
> Milan, bug #272391 has some UI freeze elements. In which case, you can commit
> it for trunk for 2.23.91. REwork and commit for 2.25.x later.. sounds fine?

Yup, will rework later today, the eds part from bug #272391 has been committed to trunk, so I will just update this patch and commit.
Comment 10 Milan Crha 2008-09-01 09:42:35 UTC
Modified patch committed to trunk. Committed revision 9461.

I marked this as obsolete because of the change.