bug 75225
git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1248 6955db30-a419-402b-8a0d-67ecbb4d7f56master
parent
b7b7729cac
commit
ad10a03e01
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/perl -wT
|
||||
# Bug 70605 - Client-side caching of field control data
|
||||
# Bug 70605 - Client-side caching of field value visibility data
|
||||
|
||||
use strict;
|
||||
use lib qw(. lib);
|
||||
|
@ -44,10 +44,11 @@ Bugzilla->send_header(
|
|||
-last_modified => time2str($touched),
|
||||
);
|
||||
|
||||
$args->{type} ||= '';
|
||||
if ($args->{type} eq 'search')
|
||||
{
|
||||
my $json = bz_encode_json(Bugzilla->full_json_query_visibility);
|
||||
print "var qfVisibility = $json;";
|
||||
print "var qfVisCached = '$user_tag-".time."';\nvar qfVisibility = $json;";
|
||||
}
|
||||
elsif ($args->{type} eq 'bug')
|
||||
{
|
||||
|
@ -57,5 +58,5 @@ elsif ($args->{type} eq 'bug')
|
|||
$json->{$_->name} = $_->json_visibility;
|
||||
}
|
||||
$json = bz_encode_json($json);
|
||||
print "show_fields = $json;";
|
||||
print "var show_fields_cached = '$user_tag-".time."';\nshow_fields = $json;";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue