phplist

NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1


View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002471phplist applicationUser Managementpublic18-01-05 15:4818-02-05 15:56
Reportermoi 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version2.9.3 
Target VersionFixed in Version2.9.4 
Summary0002471: 'Owner' is not being assigned when creating new message
Description'Owner' is not being assigned when creating new message, and therefore is the permissions are set such that an admin can only send a message if he owns it, he is unable to send any messages.

Additional InformationTracked the issue down to send_core.php:
Line 32(ish).

2.9.3 Code:
if (!$_GET["id"]) {
  Sql_Query(sprintf('insert into %s (subject,status,entered,sendformat,embargo,repeatuntil)
    values("Grassroots Newsletter","draft",now(),"text and HTML",now(),now())',$GLOBALS["tables"]["message"]));
  $id = Sql_Insert_id();
  Redirect($_GET["page"]."&id=$id");
  exit;
}

My Modification:
$thisowner = $_SESSION["logindetails"]["id"];
if (!$_GET["id"]) {
  Sql_Query(sprintf('insert into %s (subject,status,entered,sendformat,embargo,repeatuntil,owner)
    values("Grassroots Newsletter","draft",now(),"text and HTML",now(),now(),%s)',$GLOBALS["tables"]["message"],$thisowner));
  $id = Sql_Insert_id();
  Redirect($_GET["page"]."&id=$id");
  exit;
}

Note, just updating the owner field at the time the message is created.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
child of 0002456resolvedmichiel PHPList v2.9.4 release 

-  Notes
(0003255)
moi (reporter)
20-01-05 23:52

This looks to be fixed in the CVS.
(0003335)
DamienMcKenna (manager)
28-01-05 04:52

Fixed in CVS. (public_html/lists/admin/send_core.php lines 208 onwards)


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker