The recipe module does not handle updates in a sensible fashion; when the recipe form is posted it simply removes all old data and reinserts new data. I have created two patches to update this; one patch to update cvs version 1.46 of recipe.module to update rather than delete/insert to, and one to update cvs version 1.46 to drupal cvs/4.7 API also.

I'd love some feedback on this patch, to help me to suitably update it for any problems anyone can see. I'm relatively new to drupal so please don't be too harsh of any API misdemeanors :)

CommentFileSizeAuthor
recipe-sqlupdate-patch.zip2.46 KBduso

Comments

Thox’s picture

Status: Needs review » Needs work

I hope this doesn't put you off, but the patches (the 4.7 one at least) are in the "wrong" format and include many more changes than the topic of this one issue. "For drupal, we prefer patches in unified format, so we add -u to the command line" - Diff And Patch.

I'll commit all the 4.7 parts to get the module up to date with the CVS HEAD. It's worthwhile sorting through what's part of this issue and what's not (e.g. node_load change).

green monkey’s picture

Status: Needs work » Closed (fixed)

closed on age - if request still active - please resubmit