Bug #37628

Duplicate entries exception for electronicAddresses by adding through setPrimaryElectronicAddress

Added by Carsten Bleicker about 3 years ago. Updated about 3 years ago.

Status:Resolved Start date:2012-05-31
Priority:Should have Due date:
Assigned To:Christian Müller % Done:

0%

Category:-
Target version:-
Affected Flow version:Git 1.1

Description

Having a form wich sets the primaryElectronicAddress.
1. Submitting with invalid email address forces a validation error, okay
2. Submitting again with valid email the result in the address collection is:
http://pastebin.com/DE0zyDek

this collection forces an exception for duplicate entries.
maybe this "contain" check is the point to take a look at?:
https://review.typo3.org/#/c/11078/1/Classes/Domain/Model/Person.php


Related issues

related to TYPO3.Party - Bug #29484: Adding a primaryElectronicAddress to a person throws an d... Resolved 2011-09-05
related to TYPO3.Flow - Bug #37507: Doctrine Collection add existing Closed 2012-05-26

History

#1 Updated by Karsten Dambekalns about 3 years ago

  • Assigned To set to Christian Müller
  • Affected Flow version changed from Git master to Git 1.1

Christian, can you check this one?

#2 Updated by Christian Müller about 3 years ago

  • Status changed from New to Resolved

This should be solved with the resolution to #29484.
Applied in changeset 736f2ecbe68d7d85832ff21ddc84e8cb8663b4b6.

Also available in: Atom PDF