Book module constraint validation relies on the presence of a book outline form

Created on 22 February 2019, almost 6 years ago
Updated 4 September 2024, 4 months ago

Currently the book module constraint validation relies upon the form being present on all node edit forms, the issue only occurs in the event of the validation being fired when a page is saved to a draft state.

In this scenario the validation checks the content against the original version (with the default pid of -1), which is the default of the form, but not of the linkDefaults.

So there are two action to fix this problem, 1) change the getLinkDefaults so the pid is by default -1 (as it will be from the form anyway), or 2) change the validator so if the 'original' is empty, then it checks against the presence of -1 (where a form was present) or 0 if the page had no form.

πŸ› Bug report
Status

Postponed: needs info

Version

2.0

Component
BookΒ  β†’

Last updated 11 days ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @pwolanin
Created by

πŸ‡¬πŸ‡§United Kingdom andy_w

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024