1

Trying to apply patch https://drupal.org/files/webform_preview-435232_1.patch to webform 7.x-3.19 via Netbeans tool - apply dif-patch. Downloaded this patch and put into drupal root directory. When applying patch to module files see the following: "The patch cannot be applied in the selected context". Module files are in Netbeans project and all paths are properly set. The code to which patch changes are applied exists in the target file, so what else problems can be?

Thanks!

9
1

If you duplicate the file in Netbeans that gets patched (this is important that you do this on the file, NOT the project) then right click on it under Tools -> Apply Diff Patch then select your patch file. It should then say everything went as planned and allow you a summary.

You will need to repeat this for every file in the patch, or you can just apply it using Git or one of the other methods listed.

4
  • I do everything as you said but it say "the patch cannot be applied in the selected context – user2490392 Feb 25 '14 at 15:33
  • Did you right click JUST the file that gets patched? Nothing else, just the single file. – Steven Feb 25 '14 at 16:36
  • Yes, just the file that should be patched. I tried to this on several files that should be patched – user2490392 Feb 25 '14 at 17:13
  • 2
    Well then there is a problem with the patch file. If you followed wdtutorials.com/2012/04/08/… it should work – Steven Feb 25 '14 at 17:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.