Bugzilla – Attachment 2789 Details for
Bug 5449
JSON malformed in Koha - Blocker with jQuery 1.4.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for JSON bug
kx_F4B-jquery-json-20101126.patch (text/plain), 4.24 KB, created by
Brice Sanchez
on 2010-11-26 17:14:14 UTC
(
hide
)
Description:
Patch for JSON bug
Filename:
MIME Type:
Creator:
Brice Sanchez
Created:
2010-11-26 17:14:14 UTC
Size:
4.24 KB
patch
obsolete
>diff --git a/offline_circ/process_koc.pl b/offline_circ/process_koc.pl >index d0a2596..204c1ab 100755 >--- a/offline_circ/process_koc.pl >+++ b/offline_circ/process_koc.pl >@@ -92,7 +92,7 @@ if ($completedJobID) { > > my $reply = CGI->new(""); > print $reply->header(-type => 'text/html'); >- print "{ jobID: '$jobID' }"; >+ print '{"jobID":"' . $jobID . '"}'; > exit 0; > } elsif (defined $pid) { > # child >diff --git a/test/progressbarsubmit.pl b/test/progressbarsubmit.pl >index 22b0a41..0982f58 100755 >--- a/test/progressbarsubmit.pl >+++ b/test/progressbarsubmit.pl >@@ -72,7 +72,7 @@ if ($completedJobID) { > > my $reply = CGI->new(""); > print $reply->header(-type => 'text/html'); >- print "{ jobID: '$jobID' }"; >+ print '{"jobID":"' . $jobID . '"}'; > exit 0; > } elsif (defined $pid) { > # if we get here, we're a child that has detached >diff --git a/tools/background-job-progress.pl b/tools/background-job-progress.pl >index db4d890..380ad15 100755 >--- a/tools/background-job-progress.pl >+++ b/tools/background-job-progress.pl >@@ -36,7 +36,7 @@ my ($auth_status, $sessionID) = check_cookie_auth($cookies{'CGISESSID'}->value, > if ($auth_status ne "ok") { > my $reply = CGI->new(""); > print $reply->header(-type => 'text/html'); >- print "{ progress: 0 }"; >+ print '{"progress":"0"}'; > exit 0; > } > >@@ -54,4 +54,4 @@ if (defined $job) { > my $reply = CGI->new(""); > print $reply->header(-type => 'text/html'); > # response will be sent back as JSON >-print "{ progress: $reported_progress, job_size: $job_size, job_status: '$job_status' }"; >+print '{"progress":"' . $reported_progress . '","job_size":"' . $job_size . '","job_status":"' . $job_status . '"}'; >diff --git a/tools/batchMod.pl b/tools/batchMod.pl >index 5271d81..c7bd06f 100755 >--- a/tools/batchMod.pl >+++ b/tools/batchMod.pl >@@ -557,7 +557,7 @@ sub put_in_background { > > my $reply = CGI->new(""); > print $reply->header(-type => 'text/html'); >- print "{ jobID: '$jobID' }"; >+ print '{"jobID":"' . $jobID . '"}'; > exit 0; > } elsif (defined $pid) { > # child >diff --git a/tools/manage-marc-import.pl b/tools/manage-marc-import.pl >index e7ff78e..f40596e 100755 >--- a/tools/manage-marc-import.pl >+++ b/tools/manage-marc-import.pl >@@ -298,7 +298,7 @@ sub put_in_background { > > my $reply = CGI->new(""); > print $reply->header(-type => 'text/html'); >- print "{ jobID: '$jobID' }"; >+ print '{"jobID":"' . $jobID . '"}'; > exit 0; > } elsif (defined $pid) { > # child >diff --git a/tools/stage-marc-import.pl b/tools/stage-marc-import.pl >index b113332..54ebfb9 100755 >--- a/tools/stage-marc-import.pl >+++ b/tools/stage-marc-import.pl >@@ -108,7 +108,7 @@ if ($completedJobID) { > > my $reply = CGI->new(""); > print $reply->header(-type => 'text/html'); >- print "{ jobID: '$jobID' }"; >+ print '{"jobID":"' . $jobID . '"}'; > exit 0; > } elsif (defined $pid) { > # child >diff --git a/tools/upload-file-progress.pl b/tools/upload-file-progress.pl >index e3a643b..c457dbb 100755 >--- a/tools/upload-file-progress.pl >+++ b/tools/upload-file-progress.pl >@@ -35,7 +35,7 @@ my ($auth_status, $sessionID) = check_cookie_auth($cookies{'CGISESSID'}->value, > if ($auth_status ne "ok") { > my $reply = CGI->new(""); > print $reply->header(-type => 'text/html'); >- print "{ progress: 0 }"; >+ print '{"progress":"0"}'; > exit 0; > } > >@@ -44,4 +44,4 @@ my $reported_progress = C4::UploadedFile->upload_progress($sessionID); > my $reply = CGI->new(""); > print $reply->header(-type => 'text/html'); > # response will be sent back as JSON >-print "{ progress: $reported_progress }"; >+print '{"progress":"' . $reported_progress . '"}'; >diff --git a/tools/upload-file.pl b/tools/upload-file.pl >index 1f38d07..d520b4d 100755 >--- a/tools/upload-file.pl >+++ b/tools/upload-file.pl >@@ -80,5 +80,5 @@ sub send_reply { > my $reply = CGI->new(""); > print $reply->header(-type => 'text/html'); > # response will be sent back as JSON >- print "{ status: '$upload_status', fileid: '$fileid' }"; >+ print '{"status":"' . $upload_status . '","fileid":"' . $fileid . '"}'; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5449
: 2789