hi im using drupal 6 to try and setup a event + resource(s) booking/reservation system.
im using the resource conflict module (http://drupal.org/project/resource_conflict) to not overbook resources for a particular event's interval. and fullcalendar to let people drag /resize drop events on the fullcalendar.
the fullcalendar does a node_save, but the validate is ignored or something cause resource conflict event is not triggered?
how do i trigger resource conflict from fullcalendar's node_save?
Comments
Comment #1
tim.plunkettThe validation is triggered inside of a form, which FullCalendar doesn't use, since it is inside a ajax callback. Validation is completely form related, and form_set_errors will have no effect.
So, you are correct, but I'm not sure how to fix it.
Comment #2
julienl CreditAttribution: julienl commentedeven when using drupal 7 field_attach_update() does not trigger node_validate(). does anyone know a solution how to trigger node_vallidate()
Comment #3
tim.plunkettI know how to TRIGGER node_validate, but without the context of a form, the code would be completely useless.
Comment #4
tim.plunkettPerhaps you could rewrite the code to work on presave instead of validate? Validate just can't be called from an AJAX context.
Comment #5
ogursoy CreditAttribution: ogursoy commentedI desperately need this validation. how can one achieve this? I need to trigger date repeat validation on fullcalendar dragdrop or resize actions?
Comment #6
ScottBaetz CreditAttribution: ScottBaetz commentedSo... I have arrived on this doorstep with the same problem, apparently 2 years have gone by, and there is no solution yet? Advice...anyone..