Comments

dasjo’s picture

Status: Active » Needs review
StatusFileSize
new641 bytes
pmelab’s picture

It's not sufficient to test for is_array(), since delete also receives objects. !is_string() does the trick.

fago’s picture

Status: Needs review » Needs work

This could use a comment why that check is needed.

pmelab’s picture

There is a hook collision between hook_group_delete() and commerce_credits_ui_group_delete() (similiar to #1354456: commerce_credits_group_load() clashes with hook_group_load()). The check avoids a fatal error if commerce_credits_ui_group_delete() is executed by mistake.

fago’s picture

sry, I mean in the code :)

tobiasb’s picture

Title: commerce_credits_ui_group_delete() clashes with hook_group_load() » commerce_credits_ui_group_delete() clashes with hook_group_delete()
Status: Needs work » Needs review
Related issues: +#1354456: commerce_credits_group_load() clashes with hook_group_load()
StatusFileSize
new1.11 KB

Added comment. And I saw there is a function call which does nothing.

mradcliffe’s picture

StatusFileSize
new1.13 KB
new814 bytes

Re-rolled patch for testing.

mradcliffe’s picture

Status: Needs review » Fixed

Fixed

Status: Fixed » Closed (fixed)

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