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

tim.plunkett’s picture

Title: node_save & node_validate? » FullCalendar drag-and-drop doesn't trigger node_validate()
Version: 6.x-2.x-dev » 7.x-2.x-dev
Category: support » bug
Issue tags: +Needs backport to D6

The 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.

julienl’s picture

even when using drupal 7 field_attach_update() does not trigger node_validate(). does anyone know a solution how to trigger node_vallidate()

tim.plunkett’s picture

I know how to TRIGGER node_validate, but without the context of a form, the code would be completely useless.

tim.plunkett’s picture

Status: Active » Closed (won't fix)

Perhaps you could rewrite the code to work on presave instead of validate? Validate just can't be called from an AJAX context.

ogursoy’s picture

I desperately need this validation. how can one achieve this? I need to trigger date repeat validation on fullcalendar dragdrop or resize actions?

ScottBaetz’s picture

Issue summary: View changes

So... I have arrived on this doorstep with the same problem, apparently 2 years have gone by, and there is no solution yet? Advice...anyone..