fixed for compatibility with collateral management system.
This commit is contained in:
parent
0746702435
commit
d91c326282
1 changed files with 4 additions and 2 deletions
|
|
@ -76,8 +76,10 @@ sub addFiles {
|
|||
$_[4]->{uploadsPath}."/images/".$id,
|
||||
$_[2]->{thumbnailSize});
|
||||
print "Adding $filename to the database.\n";
|
||||
WebGUI::SQL->write("insert into images (imageId,name,filename,userId,username,dateUploaded) values
|
||||
($id,".$dbh->quote($filename).",".$dbh->quote($filename.".".$ext).",3,'Imported',".time().")",$_[0]);
|
||||
WebGUI::SQL->write("insert into collateral (collateralId,name,filename,userId,username,
|
||||
dateUploaded,collateralType,thumbnailsize) values
|
||||
($id,".$dbh->quote($filename).",".$dbh->quote($filename.".".$ext).",3,'Imported',".time()."
|
||||
'image',$_[2]->{thumbnailSize})",$_[0]);
|
||||
}
|
||||
}
|
||||
print "Finished adding.\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue