Closed (fixed)
Project:
Resource Conflict
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2008 at 04:24 UTC
Updated:
29 Dec 2008 at 10:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
kenorb commentedVersion for 6.x
But not tested yet.
Comment #2
xmacinfoSounds good since now I'm looking for that type of resource conflict for a studio.
Unfortunatly, this version does not fire up any warning on resource conflict, ie, it let the user add the same resource to two different events using the same time range, or part of the time range.
The administrative portion in content type editing works well. It can detect when proper modules are added, event enabled and node reference added.
To test out I created a resource type, added a single resource to it. In the event type, I've added a node reference to the resource. I then created two events using the same time period with start and end and assigned the same resource to the two events. Both events were saved normally.
So most of this module is working. It just does not warn of conflict when needed.
Note: I did use the complete version "resource_conflict_6.x.zip", which is already patched for D6.
Comment #3
deviantintegral commentedI'm also thinking that CCK Date support is probably broken. For Drupal 6, there is only Date 2, not Date 1, and at the moment this module only supports Date 1. This issue is really co-dependent with #336705: Upgrade Date API integration to work with Date 2 API.
@xmacinfo: Does it still let you create the event, or does it not just show the error?
I'm going to set up a Drupal 6 release in CVS so there's somewhere to play. I'll post here when I have the release nodes set up.
Comment #4
xmacinfo@deviantintegral: Yes, I can create the events. For each event I'm using the same resource, But the system never send a warning when a resource is already used. So I think it does not check for date conflicts.
Comment #5
deviantintegral commentedOk, now that the script has run I've created a new issue with the proper version: #345349: Event dates aren't checked properly. For any other bugs found in the Drupal 6 port, please open new issues rather than using this one.
The D6 version was committed to HEAD in #158134.
Thanks!
--Andrew
Comment #6
kenorb commentedThere is some function date_show_value() which should be reviewed.
Normally in Date 2 it doesn't exist anymore, so I've tried to copy it from previous version of Date, but it probably doesn't work.
See issue here: http://drupal.org/node/343218
So I don't know how to backport this function.
In other hand it's very easy and there are no any dependencies, but maybe I'm wrong.
I've left conversation to 6.x, because it was not working at all for me and I don't want to send more time for conversion than it could take make it from the beginning.
Comment #7
kenorb commentedComment #8
kenorb commentedSee here: http://drupal.org/node/336705