Hi,
I want to delete detail page record which has same protocol _ref as master table. I want to accomplish this through clicking on delete icon in master list.
@phrmst this is a bug, which has been reported to the dev. The error there is that the second parameter of the beforeDelete and other similar Page Event functions are not being parsed by the app when it calls the function. You can remove the error by setting the $record to null.
private function beforeDelete($rec_id, $record=null){
OR
You could locate where the function is being called and parse the second parameter to the function. It would look something similar to this, but might not be exactly, in terms of the variable name.
from this