Skip to content

Commit 180a23d

Browse files
committed
FIX PHP7 issue_info
Tools FATAL EXCEPTION: SECURITY ALERT: Attempt to set non_numeric value (string)null for key bugid
1 parent 6ad5b17 commit 180a23d

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

classes/team.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ public function addProject($projectid, $projecttype) {
884884
throw new Exception("Couldn't check existing jobs for project $projectid");
885885
}
886886
$count = $sql->sql_result($result2);
887-
self::$logger->error("count jobs = $count");
887+
//self::$logger->error("count jobs = $count");
888888
if (0 == $count) {
889889
// if no job defined yet, then default jobs (previously: commonJobs) must be assigned.
890890
$query3 = "INSERT INTO codev_project_job_table(project_id, job_id) ".

js/issue_info.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,17 @@ jQuery(document).ready(function() {
5252

5353
jQuery("#projectid").change(function() {
5454
var projectid = jQuery(this).val();
55+
var bugid=jQuery("#bugid").val();
56+
57+
// WORKAROUND
58+
if (null === bugid ) {
59+
bugid = "0";
60+
}
61+
5562
jQuery.ajax({
5663
type: "GET",
5764
url: "smarty_tools_ajax.php",
58-
data: "action=getProjectIssues&projectid="+projectid+"&bugid="+jQuery("#bugid").val(),
65+
data: "action=getProjectIssues&projectid="+projectid+"&bugid="+bugid,
5966
success: function(data) {
6067
jQuery("#bugSelector").html(jQuery.trim(data));
6168
updateWidgets("#bugSelector");

0 commit comments

Comments
 (0)