fixed #10889: Old Matrixs break for Admin users

This commit is contained in:
Graham Knop 2009-09-08 20:05:47 -05:00
parent 5cb3a6e005
commit 2cf67ecba4
2 changed files with 5 additions and 1 deletions

View file

@ -25,6 +25,7 @@
- fixed #10925: Wrong message in i18n
- relabel Help in the Admin Console to Template Help
- fixed #10928: EMS Print Ticket -- Time not processed for timezone
- fixed #10889: Old Matrixs break for Admin users
7.7.19
- fixed #10838: Forwarded forum post email to new CS adds reply to original thread

View file

@ -472,7 +472,8 @@ sub getCompareForm {
}
else{
$maxComparisons = $self->get('maxComparisonsPrivileged');
}
}
$maxComparisons += 0;
$form .= "\n<script type='text/javascript'>\n".
'var maxComparisons = '.$maxComparisons.";\n".
"var matrixUrl = '".$self->getUrl."';\n".
@ -664,6 +665,7 @@ sub view {
else{
$maxComparisons = $self->get('maxComparisonsPrivileged');
}
$maxComparisons += 0;
$var->{maxComparisons} = $maxComparisons;
if ($self->canEdit){
@ -912,6 +914,7 @@ sub www_compare {
else{
$maxComparisons = $self->get('maxComparisonsPrivileged');
}
$maxComparisons += 0;
foreach my $listingId (@listingIds){
my $listingId_safe = $listingId;