mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 09:34:04 +02:00
Convert validation rules to validate against a specific graph, not always the current graph (re: #6459)
This commit is contained in:
@@ -4,10 +4,9 @@ import { services } from '../services';
|
||||
export function validationMaprules() {
|
||||
var type = 'maprules';
|
||||
|
||||
var validation = function checkMaprules(entity, context) {
|
||||
var validation = function checkMaprules(entity, graph) {
|
||||
if (!services.maprules) return [];
|
||||
|
||||
var graph = context.graph();
|
||||
var rules = services.maprules.validationRules();
|
||||
var issues = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user