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

Last questions

Info about CMigrator for Joomla
Hi i need to import a few thousand articles from a site made in wordprres to a ...
0 Replies
Posted on Tuesday, 07 May 2024
  • New
    • #CMigator
    Error on android phone
    Why its working good on Computer and if i try it with smartphones the map dosent...
    0 Replies
    Posted on Tuesday, 07 May 2024
  • New
  • Complete Uninstall to Work in J4??
    We have recently updated a site from Joomlav3 to v4 (4.4.2). Now when we go to m...
    5 Replies
    Posted on Tuesday, 30 April 2024
  • New
  • Bug with front-end submission and table not having
    Hi, i think i found a problem. When trying to edit a hotspot from front-end ...
    3 Replies
    Posted on Wednesday, 15 March 2023
    Question regarding custom fields
    How do I access custom fields after I have created them?...
    1 Replies
    Posted on Wednesday, 24 April 2024
    • #custom fields