Needs review
Project:
Save Draft
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2013 at 08:05 UTC
Updated:
8 Jan 2018 at 06:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
GemVinny commentedI have looked in the database to see if it's to do with the weight of the module, but it's not that.. still wondering what the issue might be. It may be something similar to the field required issue.
Gemma
Comment #2
rooby commentedThis is a hard one to deal with, because we can't just blindly ignore all validation without possibly causing security holes.
The required field validation was an exception because we know that doesn't introduce a security hole.
Possibly some support could be added for the field validation module to allow you to select which validators are allowed to be skipped when saving drafts.
I will have a bit more of a think about possible solutions.
Comment #3
rooby commentedThis is technically not a bug, so changing.
Comment #4
Anonymous (not verified) commentedI think that one of the ways of solving this problem, would be to skip validations only for empty fields and validate those that have values entered. Correct me if I am wrong(still a noob), but I think there would be no security issues if we did this.
Comment #5
rooby commentedIt would be good to have a list of field_validation plugins that would be skipped (the list could be altered by other modules), however I've had a quick look and it looks like it's going to be hard to hook into the field_validation module's validation processes due to the way that they run.
It might require a patch to the field_validation module to make it more feasible.
Comment #6
rooby commentedHere is a patch that skips validation for field_validation module rules.
Currently it skips these 2 types of validators (but it can easily be tweaked to add others):
* Required field
* Require some of several fields
It requires the patch from this issue to be applied to the field_validation module: #2935050: Allow validation rules to be altered before they are applied
Comment #7
rooby commented