Closed (fixed)
Project:
Commerce Credits
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2014 at 15:45 UTC
Updated:
16 Apr 2016 at 17:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dasjoComment #2
pmelab commentedIt's not sufficient to test for
is_array(), since delete also receives objects.!is_string()does the trick.Comment #3
fagoThis could use a comment why that check is needed.
Comment #4
pmelab commentedThere is a hook collision between
hook_group_delete()andcommerce_credits_ui_group_delete()(similiar to #1354456: commerce_credits_group_load() clashes with hook_group_load()). The check avoids a fatal error ifcommerce_credits_ui_group_delete()is executed by mistake.Comment #5
fagosry, I mean in the code :)
Comment #6
tobiasbAdded comment. And I saw there is a function call which does nothing.
Comment #7
mradcliffeRe-rolled patch for testing.
Comment #9
mradcliffeFixed