Blender 2.8 modifier apply Python has somebody an idea how to apply a modifier with Python in Blender 2.8 or is it just a bug and not an API / internal change?

When I apply like this:

bpy.ops.object.modifier_apply(modifier=bool_mod.name)


which works with 2.79 I get this error in 2.8:


  File ".... blender-2.80.0-git.421017d24a0-windows64\2.80\scripts\modules\bpy\ops.py",
  line 192,  in call
          ret = op_call(self.idname_py(),  None, kw) RuntimeError:  Operator bpy.ops.object.modifier_apply.poll() Context missing
  'modifier'
It is fixed now, was just missing in Blender 2.8 at the time I added this issue.