Hi Peter!
I successfully ported Node clone to Drupal 6! Would be cool, if you created a 6.0 branch and commitred the module.
But first of all, maybe someone wants to test it thoroughly...?
I attach both a .tar.gz and a .patch file.

Comments

pwolanin’s picture

There is at least one pending patch regarding $node->name - that needs to be tested and fixed first. Did you port from the 1.x or 2.x branch?

pwolanin’s picture

this one: http://drupal.org/node/166684

please test - especially as a non-admin user.

pancho’s picture

Oh, I already tested that patch and incorporated it into my 6.0 port (which has been ported from the 5.x-2.x branch). Both here and there it worked out well. Still, I might find some time tomorrow to test everything again, and more thoroughly.

pwolanin’s picture

I just committed these patches:

http://drupal.org/node/198013
http://drupal.org/node/166684

so you may need to re-roll your patch.

also, why this change:

-function clone_node_type($op, $type_obj) {
-
+function clone_node_type($op, $info) {

I always thought $info was a very unhelpful variable name. what's being passed in is a type object

pwolanin’s picture

Priority: Critical » Normal
Status: Needs review » Needs work
robloach’s picture

Could the Drupal 6 port be finished, committed to HEAD and then be branched to DRUPAL-6--1 as soon as possible please? I want to update DrupalBin to Drupal 6. I could rework the patch from DRUPAL-5--2 if that's required.

pwolanin’s picture

Status: Needs work » Needs review
StatusFileSize
new5.08 KB

ok, I synched HEAD with the 5x-2 branch and then worked up the attached patch. The patch above didn't apply, but I cut, pasted and edited some useful parts of it.

Passes basic testing - I'll tag and release a 6.x beta off HEAD. Please test the committed code.

robloach’s picture

Status: Needs review » Reviewed & tested by the community

Seems to be working perfectly, nicely done! It also seems to be already committed to HEAD. Should we branch to DRUPAL-6--1 and make the development release snapshots for both DRUPAL-5 and DRUPAL-6--1?

pwolanin’s picture

I tagged and made a 6.x beta release. No point in branching now.

http://drupal.org/node/221051

hass’s picture

This beta is not yet displayed on the project home. Fix this by going inside the release > Edit > Save :-)

pwolanin’s picture

@hass - thanks, I was wondering why it didn't show up.

hass’s picture

This is a project module bug.

hass’s picture

Status: Reviewed & tested by the community » Fixed

I think this patch is committed, isn't it? so marking as fixed.

pwolanin’s picture

yes - patch is committed - but I was still hoping for feedback on whether it works...

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

  • Commit 47824f8 on 6.x-1.x, 7.x-1.x, master, 8.x-1.x by pwolanin:
    #196661 inital 6.x update with help from Pancho