Getting the following error:

Notice: Undefined index: #required_on_publish in require_on_publish_preprocess_form_element() (line 79 of modules/contrib/require_on_publish/require_on_publish.module).

Patch to check for value is attached below.

Comments

spfaffly created an issue. See original summary.

spfaffly’s picture

StatusFileSize
new569 bytes

Attached patch. Thanks for a great module.

spfaffly’s picture

StatusFileSize
new905 bytes

Found another instance of Undefined Index: Rerolled patch to include the fix.

spfaffly’s picture

mpriscella’s picture

StatusFileSize
new1001 bytes
new832 bytes

Thanks, good catch! Changes look good, I added a small tweak to check the actual value of #required_on_publish after checking the existence of that key.

spfaffly’s picture

Looks great. Totally makes sense to add the original logic back in 👍

mpriscella’s picture

Awesome, thanks! Merging this into the dev branch now.

  • mpriscella committed 7b4a58a on 8.x-1.x
    Issue #3008620 by spfaffly, mpriscella: Notice: Undefined index: #...
mpriscella’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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