Fix patchs inheritance
Merge pull request #978 from romainneutron/fix-patches

[3.9] Fix patches inheritance