Commit b2bd051c authored by Ad Schellevis's avatar Ad Schellevis

(UniqueConstraint) unique added fields

parent 64019ba8
......@@ -59,7 +59,7 @@ class UniqueConstraint extends BaseConstraint
if ($containerNode != null && $level == 2) {
// collect (additional) key fields
$keyFields = array($nodeName);
$keyFields = array_merge($keyFields, $this->getOptionValueList('addFields'));
$keyFields = array_unique(array_merge($keyFields, $this->getOptionValueList('addFields')));
// calculate the key for this node
$nodeKey = '';
foreach ($keyFields as $field) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment