View Issue Details

IDProjectCategoryView StatusLast Update
0002471phplist applicationUser Managementpublic18-02-05 15:56
Reportermoi 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
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.

Relationships

child of 0002456 resolvedmichiel PHPList v2.9.4 release 

Activities

moi

20-01-05 23:52

reporter   ~0003255

This looks to be fixed in the CVS.

DamienMcKenna

28-01-05 04:52

manager   ~0003335

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