Closed (fixed)
Project:
Drush Entity
Version:
8.x-6.x-dev
Component:
Drupal 7
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2016 at 23:32 UTC
Updated:
12 Jul 2016 at 09:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
adriancidComment #3
adriancidComment #4
clemens.tolboom@adriancid thanks for reporting. I'm not sure your patch solves the invalid argument type? I'll check tomorrow
Comment #5
adriancid@clemens.tolboom I test the code and it works for me, the problem is that if you use this command:
drush entity-delete node 1 2the params are not an array are a string and in the code you have:
So, you force the function to recieve an array. But the param is a string, and when you use the function
func_get_args()you will have in the$idsvar the array that you need for the call of your function_drush_entity_delete($entity_type, $ids);in the line 825Comment #8
clemens.tolboomI fixed it differently on 8.x-6.x
Pushed to 7.x-5.x branch too.