Path

ez projects / xrowmultibinary / forum / general / error in file-download-coun... / re: error in file-download-...


error in file-download-count sql

You need to be logged in to post messages in the forums. New users may register here.

Gernot Rief

Member since:
07 March 2003

Posts: 2

Thursday 18 November 2010 11:05:50 am

hi!

nice extension
i think the file-download-count sql should be



$db->query( 'UPDATE ezbinaryfile 

                        SET download_count = ( download_count+1 )


                        WHERE contentobject_attribute_id = '.$contentObjectAttributeID.'


                        AND version= '.$version.'


                        AND filename= "'.eZDB::instance()->escapeString( $id ).'"' );



instead of



...WHERE contentobject_attribute_id = $contentObjectAttributeID AND...




lg
Up

Heath Heath

Member since:
04 March 2007

Posts: 73

Friday 18 November 2011 3:01:53 pm

Hello Gernot,

This bug fix was just recently committed to the project repository.

You can see this here, http://projects.ez.no/xrowmultibinary/subversion/54

This should prevent this problem in the future.

I hope this helps ...

Cheers,
Heath
Up

You need to be logged in to post messages in the forums. New users may register here.