Override Youtube block save method issue

Permalink
I'm very new to customizing Concrete5 blocks. I'm facing problems when overriding the save method of the Youtube block. I've customized the block and added new database fields which of course need to be saved.

In my /web/blocks/youtube/controller.php I've added the save method with the new fields and call parent::save( $args ), but the parent's save method ignores the new fields.

It's related to the Content block bug as described here:http://www.concrete5.org/developers/bugs/5-6-1-2/implementation-of-...

So is it true that for the moment I can't override the save method without adapting the code of the core controller or is there another way to do it? Probably other blocks have the same issue...

Thanks in advance!

 
12345j replied on at Permalink Reply
12345j
Try reloading the database scheme for the block. Just goto install, click edit on the youtube block, and there should be a button to reload the schema.
jeroenh replied on at Permalink Reply
Thanks for the reply. The DB table already has the new field, but the Youtube core controller doesn't do anything with it. Unfortunately I had to make a change to the save method in the core controller the same way it was done fixing the bug I mentioned in my initial post.