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
0005159phplist applicationTemplate Managementpublic28-12-05 14:1518-02-08 14:16
Reportericedstitch 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version2.10.2 
Target Version2.10.7Fixed in Version2.10.3 
Summary0005159: template images not replaced when re-uploaded
DescriptionWhen updating an image for a template in phplist, I found that the images were not updating, just staying the same as they were before. So I poked around and found that images for template id and image name were not being deleted before the new image was inserted into the table.

Reason being that $$originalname was blank in /admin/class.image.inc on line 139 . So I changed the $$ to $.

Line: 139:
      Sql_Query(sprintf(
            'delete from
                 %s
            where
                 template = %d
            and
                 filename = "%s"
            ',
        $tables["templateimage"],$templateid,$$originalname));

The original images are always saved the first time, further updates do not get updated.
Additional InformationPHP Version 4.3.4.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to 0003721closed phplist 2.10.x 

-  Notes
There are no notes attached to this issue.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker