The feature to not load the Quicklink library on certain content types is working the opposite to how it's intended.

For example, if I configure the module with all of my content types unchecked, then when I visit a node page I would expect the Quicklink library to be loaded. However, when I visit a node page in this scenario, the debug load shows: "Library not loaded because content type 'page' is specified to not load library."

Comments

joelstein created an issue. See original summary.

joelstein’s picture

Status: Active » Needs review
StatusFileSize
new591 bytes

This patch fixes the issue by inverting the faulty logic.

mherchel’s picture

Thanks :) On way back from DrupalCon now. Will be reviewing it this weekend!

mherchel’s picture

Looking in xdebug, it seems like we need to do more than check to see if the content type is in the array

mherchel’s picture

StatusFileSize
new630 bytes

Attached is an updated patch that checks for $no_load_content_types[$node->type]. Take a look?

mherchel’s picture

StatusFileSize
new640 bytes

Re-rolled patch against latest HEAD

  • mherchel committed 69034c2 on 7.x-1.x authored by joelstein
    Issue #3047485 by mherchel, joelstein: Library not loading on any...
mherchel’s picture

Status: Needs review » Fixed

Just finished more testing of this feature. I'm happy with it. Committing. Thanks @joelstein

joelstein’s picture

Great, thanks for getting this in!

Just an FYI, "in_array()" checks if the value is in the array, not the key. So the patch I submitted should work just fine; but what you have also works. :)

Status: Fixed » Closed (fixed)

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