1. Andre Wester
  2. Sherlock Holmes
  3. General
  4. Saturday, 21 December 2013
  5.  Subscribe via email
Hi Yves,

ich verzweifle langsam :-) Hab die Änderung, wie von Dir geschrieben, vorgenommen. Funktioniert leider immer noch nicht mit der Storno-Bestätigungsmail. Muss noch wo anders was geändert werden?

Hier nochmal der Remove-Part aus /administrator/components/com_matukio/Controllers/bookings.php, wie er jetzt bei mir ist:

public function remove()
{
$cid = JFactory::getApplication()->input->get('cid', array(), 'array');
$db = JFactory::getDBO();

if (count($cid))
{
$cids = implode(',', $cid);

// Notify users
if (MatukioHelperSettings::_("notify_participants_delete", 1))
{
$db->setQuery("SELECT * FROM #__matukio_bookings WHERE id IN (" . $cids . ";)";);
$bookings = $db->loadObjectList();

if ($db->getErrorNum())
{
throw new Exception($db->getErrorMsg(), 42);
}

foreach ($bookings AS $b)
{
MatukioHelperUtilsEvents::sendBookingConfirmationMail($b->semid, $b->id, 3);
}
}

$query = "DELETE FROM #__matukio_bookings where id IN ( $cids )";
$db->setQuery($query);

if (!$db->execute())
{
throw new Exception($db->getErrorMsg(), 42);
}
}

$this->setRedirect('index.php?option=com_matukio&view=bookings');
}

/**

LG André
Responses (4)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now
Powered by EasyDiscuss for Joomla!