chg: valueIsUnique assumed the deleted flag to be set on attributes

pull/1202/head
Iglocska 2016-06-03 01:27:12 +02:00
parent 870cbc33f7
commit 3b6a852428
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ class Attribute extends AppModel {
}
public function valueIsUnique ($fields) {
if ($this->data['Attribute']['deleted']) return true;
if (isset($this->data['Attribute']['deleted']) && $this->data['Attribute']['deleted']) return true;
$value = $fields['value'];
$eventId = $this->data['Attribute']['event_id'];
$type = $this->data['Attribute']['type'];