We're using webform_select_limit in a scenario where drafts are enabled. With the current logic, this means that draft records are still counted against the overall limit for a given component value, resulting in false limit counts. We've patched the function to use a subquery to exclude drafts from the value count. (Will attach patch shortly.)

Comments

usonian created an issue. See original summary.

usonian’s picture

haydent’s picture

Thanks usonian. This looks good. Will commit it once I find a bit of time.

  • haydent committed cecec82 on 7.x-1.x authored by usonian
    Issue #2896219 by usonian: Ignore draft submissions in...
haydent’s picture

Status: Active » Fixed

I have included this within the dev branch. I will release a new version at some stage.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

brianbrarian’s picture

#2 patch and the current dev version appear to be missing the semicolon at the end of:

->condition('is_draft',0);

which results in WSOD.