Changeset 212 for trunk/calendar/inc
- Timestamp:
- 03/11/08 14:50:37 (17 years ago)
- Location:
- trunk/calendar/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.bocalendar.inc.php
r204 r212 2453 2453 return False; 2454 2454 } 2455 $event = $this->so->read_entry($cal_id); 2456 $account_id = $GLOBALS['phpgw_info']['user']['account_id']; 2457 if(($status2msg[$status] == "5" && $event['participants'][$account_id] == "A") || 2458 ($status2msg[$status] == "3" && $event['participants'][$account_id] == "R")) { 2459 return True; 2460 } 2455 2461 $this->so->set_status($cal_id,$status); 2456 2462 $event = $this->so->read_entry($cal_id); 2457 2463 $this->send_update($status2msg[$status],$event['participants'],$event); 2458 2464 2459 return True;2460 2465 } 2461 2466 -
trunk/calendar/inc/class.uicalendar.inc.php
r204 r212 1484 1484 } 1485 1485 1486 function confirm_action( )1486 function confirm_action($duplicated_action) 1487 1487 { 1488 1488 if($_GET['response'] == 1) 1489 1489 { 1490 $notify_message = lang('The commitment was accepted successfully!');; 1490 if(!$duplicated_action) 1491 $notify_message = lang('The commitment was accepted successfully!'); 1492 else 1493 $notify_message = lang('This commitment has already been accepted!'); 1491 1494 } 1492 1495 else 1493 { 1494 $notify_message = lang('The commitment was rejected successfully!'); 1496 { 1497 if(!$duplicated_action) 1498 $notify_message = lang('The commitment was rejected successfully!'); 1499 else 1500 $notify_message = lang('This commitment has already been rejected!'); 1495 1501 } 1496 1502 … … 1509 1515 return; 1510 1516 } 1511 $this->bo->set_status((int)$_GET['cal_id'],(int)$_GET['action']);1512 1517 1518 $confirm_status = $this->bo->set_status((int)$_GET['cal_id'],(int)$_GET['action']); 1519 1513 1520 if(isset($_GET['response'])) 1514 1521 { 1515 $this->confirm_action( );1522 $this->confirm_action($confirm_status); 1516 1523 $GLOBALS['phpgw']->common->phpgw_exit(False); 1517 1524 }
Note: See TracChangeset
for help on using the changeset viewer.