Revision a72dc7ae
Von Christian Ehringfeld vor mehr als 9 Jahren hinzugefügt
src/validators/uniquevalidator.cpp | ||
---|---|---|
e = nullptr;
|
||
QHash<QString, QVariant> params = QHash<QString, QVariant>();
|
||
params.insert(targetAttribute, value);
|
||
q.appendWhere(Expression(targetAttribute, params));
|
||
q.appendWhere(em->getQueryBuilder()->where(params));
|
||
if (em->count(q) > 0) {
|
||
msgs.append(ErrorMsg("",
|
||
"<property> \"" + value.toString() + "\" has already been taken."));
|
Auch abrufbar als: Unified diff
...