Piwigo Bugtracker

Piwigo bug tracker has moved to Github

This bugtracker is kept to provide history on old issues.


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002816Piwigotemplatepublic2012.12.26 12:342013.01.30 11:53
Reportermistic100 
Assigned Tomistic100 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version2.4.6 
Target Version2.5.0RC1Fixed in Version2.5.0RC1 
Summary0002816: {strip} smarty tag can introduce bugs in javascript
Descriptionwhen {strip} is used arround bad (but working) javascript, is can introduce bugs

for instance
{strip}
if (rating.count == 1)
    e.innerHTML = "('%d rate')".replace("%d", rating.count);
else
    e.innerHTML = "('%d rates')".replace("%d", rating.count);
{/strip}

won't work because "else" and the following "e" are not separated anymore

that's because Smarty completely remove \t, \r, \n and spaces, it should replace them by a single space, avoiding errors
TagsNo tags attached.
browserany
Database engine and version
PHP version
Web serverApache 1.3.x
Attached Files

- Relationships

-  Notes
(0006785)
svn (reporter)
2012.12.26 12:35

[Subversion] r19575 by mistic100 on trunk

-----[Subversion commit log]----------------------------------------------------
feature 2816: {strip} smarty tag can introduce bugs in javascript + fix picture.tpl

- Issue History
Date Modified Username Field Change
2012.12.26 12:34 mistic100 New Issue
2012.12.26 12:34 mistic100 Status new => assigned
2012.12.26 12:34 mistic100 Assigned To => mistic100
2012.12.26 12:34 mistic100 browser => any
2012.12.26 12:34 mistic100 Web server => Apache 1.3.x
2012.12.26 12:35 svn Checkin
2012.12.26 12:35 svn Note Added: 0006785
2013.01.30 11:53 mistic100 Status assigned => closed
2013.01.30 11:53 mistic100 Resolution open => fixed
2013.01.30 11:53 mistic100 Fixed in Version => 2.5.0RC1


Copyright © 2000 - 2017 MantisBT Team
Contact
Powered by Mantis Bugtracker