Home arrow Bugs
| Back |
Bugs: View Ticket
Deleted Event leaves ExtCal entry
Submitted: 2006-03-16 06:19:35
Type: Bug
Status: Resolved
Submitted By: The Shadow (shadow42)
Assigned To: Samuel Suter (moensch)
Product: com_mls_events
Category: Backend
Version Reported: 0.1.1
Version Due: 0.1.2
Percent Complete: 100%
Severity: 3
Priority: 3
 
Description

When you delete an Event, the corresponding ExtCal entry remains.

Add this code to "admin.mls_events.php::removeMLS_events"

global $cnf_mls_events;

//ExtCal 2 integration
if($cnf_mls_events["extcal_integration"]) {
//Integration is enabled...
$database->setQuery( "SELECT `extcal_id` FROM `#__mls_events` WHERE `id` IN ($cids)" );
$events = $database->loadObjectList();
foreach(
$events as $event) {
$extids .= (!$extids)?$event->extcal_id:','.$event->extcal_id;
}
$database->setQuery( "DELETE FROM `#__extcal_events` WHERE `extid` IN ($extids)" );
if (!
$database->query()) {
echo
" alert('".$database->getErrorMsg()."'); window.history.go(-1); \n";
}
}
?>

/Andrew

 
Updated: 2006-03-18 18:35:49
UpdatedBy: Samuel Suter (admin)
Comments
Write Comment:
 
Audit
Time User Text Field Old Value New Value
Sat, 18. Mar 06 18:35:49 Samuel Suter (admin) Value changed description ... ...
Sat, 18. Mar 06 18:35:49 Samuel Suter (admin) Value changed percentComplete 90 100
Sat, 18. Mar 06 18:35:49 Samuel Suter (admin) Value changed statusid Waiting for new version Resolved
Sat, 18. Mar 06 18:35:49 Samuel Suter (admin) Value changed updated 2006-03-18 17:47:23 2006-03-18 18:35:49
Sat, 18. Mar 06 17:47:23 Samuel Suter (admin) Value changed description ... ...
Sat, 18. Mar 06 17:47:23 Samuel Suter (admin) Value changed updated 2006-03-18 17:45:05 2006-03-18 17:47:23
Sat, 18. Mar 06 17:45:05 Samuel Suter (admin) Value changed description ... ...
Sat, 18. Mar 06 17:45:05 Samuel Suter (admin) Value changed percentComplete 0 90
Sat, 18. Mar 06 17:45:05 Samuel Suter (admin) Value changed versionDue 0.1.2
Sat, 18. Mar 06 17:45:05 Samuel Suter (admin) Value changed statusid Submitted Waiting for new version
Sat, 18. Mar 06 17:45:05 Samuel Suter (admin) Value changed updatedBy Samuel Suter (admin)
Sat, 18. Mar 06 17:45:05 Samuel Suter (admin) Value changed updated 2006-03-16 06:19:35 2006-03-18 17:45:05
 
JoomBugs Bug Tracker for Joomla 0.1.0 (com_joombugs)
© 2006 Samuel Suter <samuel.suter@mylansite.org>
This is Free Software released under the GNU/GPL License.
© 2008 myLANsite - Lanparty components for Joomla
Joomla! is Free Software released under the GNU/GPL License.