using : Drupal 6.3, CCK 6.x-2.0-rc4, Duration 6.x-1.0-rc1 (Date 6.x-2.0-beta3 is also installed on this drupal site)
I have added a duration field to a CCK content type. It is configured so that the smallest metric allowed is 'minutes' and largest is 'hours'. This content type already had some nodes created prior to the addition of the duration field.
* After having added the duration field to the content type, when I create a new node of this content type, it works OK.
* When I try to view a node of this content type that had been created before the 'duration' field was added to that content type, I get a blank page. Obviously something is not procesed correctly.
* When I try to edit a node of this content type that had been created before the 'duration' field was added to that content type, I get the following error message:
warning: __clone method called on non-object in /var/www/drupal6/sites/all/modules/duration/duration_api.module on line 79.
Comments
Comment #1
jpetso commentedThe third point should be fixed in the next release (rc2), I hope it fixes the second point too. Please test, I'm going to push out the new release right now.
Comment #2
jpetso commentedUpdating the issue status, too.
Comment #3
yuit commentedThanks for having looked into this.
I have just updated to the latest version of the various components before to test your 'rc2' release: Drupal 6.5, CCK 6.x-2.0-rc10, Duration 6.x-1.0-rc2 (Date 6.x-2.0-rc3 is also installed on this drupal site).
I performed the following tests:
1) On point 1 of my earlier report: I created a new content type, which included a 'duration' field. I then create a new node of that content type. It works OK.
2) on point 2 of my earlier report: I created a new content type, which included a cck 'text' field, but no 'duration' field. I then added a node of that content type. I then added a 'duration' field to the content node. I then went back to view the node created before the duration field was added to the content type: it works OK (problem solved).
3) on point 3 of my earlier report: editing, once the duration field has been added, the node created before the duration field was added to the content type works OK now (problem solved).
I have only made 1 test, but it works great now where it was broken before. It looks like the problems are solved and the issue can be closed as far as I am concerned.
Thanks again !
Comment #4
jpetso commentedGreat, I'm glad it works for you :)
Let's close this issue, then.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.