Revision: 1426
http://mrbs.svn.sourceforge.net/mrbs/?rev=1426&view=rev
Author: cimorrison
Date: 2010-08-27 16:06:40 +0000 (Fri, 27 Aug 2010)
Log Message:
-----------
Fixed a bug which gave an "Invalid series ID" message if you tried to delete a
series and email notifications were turned on.
Modified Paths:
--------------
mrbs/trunk/web/del_entry.php
Modified: mrbs/trunk/web/del_entry.php
===================================================================
--- mrbs/trunk/web/del_entry.php 2010-08-27 11:46:07 UTC (rev 1425)
+++ mrbs/trunk/web/del_entry.php 2010-08-27 16:06:40 UTC (rev 1426)
@@ -1,6 +1,13 @@
<?php
// $Id$
+// Deletes an entry, or a series. The $id is always the id of
+// an individual entry. If $series is set then the entire series
+// of wich $id is a member should be deleted. [Note - this use of
+// $series is inconsistent with use in the rest of MRBS where it
+// means that $id is the id of an entry in the repeat table. This
+// should be fixed sometime.]
+
require_once "defaultincludes.inc";
require_once "mrbs_sql.inc";
@@ -62,7 +69,7 @@
{
require_once "functions_mail.inc";
// Gather all fields values for use in emails.
- $mail_previous = getPreviousEntryData($id, $series);
+ $mail_previous = getPreviousEntryData($id, FALSE);
}
sql_begin();
$result = mrbsDelEntry(getUserName(), $id, $series, 1);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits