- fix: Bug in "Article with Files"

- fix: SQLReport pagination retains op= parameter
 - fix: Invalid MIME type set for images
This commit is contained in:
JT Smith 2006-11-15 22:30:50 +00:00
parent 24b0e8c8bd
commit bc4125204a
8 changed files with 31 additions and 21 deletions

View file

@ -9,6 +9,13 @@
- fix: New resizable textareas not obeying width/height parameters
- fix: InOutBoard not allowing re-editing of new revisions
- Added a fatal error should parsing of JSON config file fail
- Fixed a bug with the admin mode subnet feature.
- Fixed a problem with rich media ads not processing macros.
- Fixed a flaw in the new commerce tax system that caused checkouts to fail.
- fix: Bug in "Article with Files"
- fix: SQLReport pagination retains op= parameter
- fix: Invalid MIME type set for images
7.2.0
- Added server side spellchecker (Martin Kamerbeek / Procolix)

View file

@ -16,6 +16,7 @@ package WebGUI::AdSpace::Ad;
use strict;
use WebGUI::AdSpace;
use WebGUI::Macro;
use WebGUI::Storage::Image;
=head1 NAME
@ -259,7 +260,9 @@ sub set {
my $storage = WebGUI::Storage::Image->get($self->session, $self->get("storageId"));
$self->{_properties}{renderedAd} = '<div style="position:relative; width:'.$adSpace->get("width").'px; height:'.$adSpace->get("height").'px; margin:0px; overflow:hidden; border:0px;"><a href="'.$self->session->url->gateway(undef, "op=clickAd;id=".$self->getId).'" style="position:absolute; padding: 3px; top:0px; left:0px; width:100%; height:100%; z-index:10; display:block; text-decoration:none; vertical-align:top;"><img src="'.$storage->getUrl($storage->getFiles->[0]).'" alt="'.$self->get("title").'" style="z-index:0;position:relative;border-style:none;border: 0px;" alt="'.$self->get("title").'" /></a></div>';
} elsif ($self->get("type") eq "rich") {
$self->{_properties}{renderedAd} = $self->get("richMedia");
my $ad = $self->get("richMedia");
WebGUI::Macro::process($self->session, $ad);
$self->{_properties}{renderedAd} = $ad;
}
$self->session->db->setRow("advertisement","adId",$self->{_properties});
}

View file

@ -2133,20 +2133,6 @@ true.
sub isValidRssItem { 1 }
#-------------------------------------------------------------------
=head2 exportHtml_view ( )
View method for static export. This is like www_view, and defaults to
just calling www_view, but this needs to be overridden if www_view
depends on there being an actual HTTP response on the other end.
=cut
sub exportHtml_view {
my $self = shift;
$self->www_view(@_);
}
1;

View file

@ -375,9 +375,6 @@ sub www_edit {
sub exportHtml_view {
my $self = shift;
return $self->session->privilege->noAccess() unless $self->canView;
# if ($self->session->var->get("adminOn")) {
# return $self->session->asset($self->getContainer)->www_view;
# }
my $path = $self->getStorageLocation->getPath($self->get('filename'));
my $fh = eval { FileHandle->new($path) };

View file

@ -602,7 +602,7 @@ sub _processQuery {
my $url = $self->getUrl('func=view');
foreach ($self->session->form->param) {
unless ($_ eq "pn" || $_ eq "func" || $_ =~ /identifier/i || $_ =~ /password/i) {
unless ($_ eq "pn" || $_ eq "op" || $_ eq "func" || $_ =~ /identifier/i || $_ =~ /password/i) {
$url = $self->session->url->append($url, $self->session->url->escape($_)
.'='.$self->session->url->escape($self->session->form->process($_)));
}

View file

@ -213,6 +213,7 @@ sub _exportAsHtml {
return (1, sprintf($i18n->get('export information'), scalar(@{$assetIds}), ($self->session->datetime->time()-$startTime)));
}
#-------------------------------------------------------------------
=head2 exportAsHtml
Same as www_exportGenerate except without the output. Returns
@ -228,6 +229,21 @@ sub exportAsHtml {
#-------------------------------------------------------------------
=head2 exportHtml_view ( )
View method for static export. This is like www_view, and defaults to
just calling www_view, but this needs to be overridden if www_view
depends on there being an actual HTTP response on the other end.
=cut
sub exportHtml_view {
my $self = shift;
$self->www_view(@_);
}
#-------------------------------------------------------------------
=head2 www_export
Displays the export page administrative interface

View file

@ -466,7 +466,7 @@ sub www_checkoutSubmit {
$salesTaxTotal += $_->{salesTax};
}
# Oy, the kludge.
$transaction->addItem(WebGUI::Commerce::Item::Fake->new($session, $salesTaxTotal.',Sales Tax'));
$transaction->addItem(WebGUI::Commerce::Item::Fake->new($session, $salesTaxTotal.',Sales Tax'), 1, $salesTaxTotal);
$transaction->shippingCost($shippingCost);
$transaction->shippingMethod($shipping->namespace);
$transaction->shippingOptions($shipping->getOptions);

View file

@ -18,6 +18,7 @@ use strict;
use WebGUI::Cache;
use WebGUI::Group;
use WebGUI::DatabaseLink;
use WebGUI::Utility;
=head1 NAME
@ -131,7 +132,7 @@ sub canUseAdminMode {
my $pass = 1;
my $subnets = $self->session->config->get("adminModeSubnets") || [];
if (scalar(@$subnets)) {
$pass = isInSubnet($self->session->env->get("REMOTE_ADDR"), $subnets);
$pass = WebGUI::Utility::isInSubnet($self->session->env->get("REMOTE_ADDR"), $subnets);
}
return $pass && $self->session->user->isInGroup(12)
}