This module gives errors when the url_with_class field is empty , both on render and on the settingsform.

This patch checks on empty.

Comments

dimitri.baudonck@gmail.com’s picture

StatusFileSize
new1.16 KB
dimitri.baudonck@gmail.com’s picture

Status: Patch (to be ported) » Needs review

Added organisation.

danny englander’s picture

StatusFileSize
new2.3 KB
new763.77 KB

I tested the patch but it did not apply using Composer so I re-rolled it. After testing, the error went away from both areas. The error was

Notice: Undefined offset: 1 in page_specific_class_preprocess_html() (line 30 of modules/contrib/page_specific_class/page_specific_class.module).

Note, I also fixed a few PHPCS items that had been flagged.

before and after

hardik_patel_12’s picture

StatusFileSize
new1.61 KB
new2.76 KB

Patch at #4 was not applying ,so i have added new logic which is checking not empty value on configuration form. Kindly review a new patch.

naveenvalecha’s picture

Status: Needs review » Reviewed & tested by the community

Good to go!

  • Hardik_Patel_12 authored 977cb4d on 2.0.x
    Issue #3114827 by Hardik_Patel_12, Danny Englander, dimitri.baudonck@...
hardik_patel_12’s picture

Status: Reviewed & tested by the community » Fixed

Thank-you everyone for your wonderful effort, this patch is pushed on 2.0.x branch.

promo-il’s picture

patch#5 D:8.8, PHP:7.2 OK

Status: Fixed » Closed (fixed)

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